O'Reilly logo

Beginning JavaScript Charts: With jqPlot, d3, and Highcharts by Fabio Nelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 17

image

Handling Input Data

Once you have dealt with all the graphical aspects of a chart, it is time to analyze input data in more detail. In the previous chapters, you assigned the values of input data to arrays. These arrays were defined in the same HTML page within which the jqPlot code resides. You have frequently used these two ways:

var plot1 = $.jqplot ('chart1', [[100, 110, 140, 130, 80, 75, 120, 130, 100]]);

and

var data = [[100, 110, 140, 130, 80, 75, 120, 130, 100]];

In actuality, it is often necessary to interface with other technologies in order to obtain such data, and to do so you need to find a way that is well suited to any ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required