Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
Getting an error when trying to run sparkline
posted

Hello, 

I'm trying to get a simple example sparkline working using the specific javascript files that are required.

When it hits the line to create a sparkline for the element, it errors out saying "Cannot read property '$type' of undefined" somewhere in chart_sparkline.js.

If I use the all encompassing scripts (namely, core, lob and dv) it works fine.

The js files I'm including:

infragistics.util.js
infragistics.datasource.js
infragistics.dv.simple.core.js
infragistics.templating.js
infragistics.ui.basechart.js
infragistics.ui.sparkline.js
infragistics.chart_sparkline.js

Any ideas as to what the problem might be?

Thanks in advance for any help.

I added a JS Fiddle demonstrating the issue.  If you comment out the core, lob and dv files and uncomment the recommeded individual js files, you will see the behavior I'm noticing...

http://jsfiddle.net/k0f2njnq/1/