Using the SimplePlot Library

In the past, charting in JavaScript has meant creating your own code that generated HTML to display the data. This has stopped most applications from moving the charting code from the server to the client and has therefore greatly reduced the number of applications using charting to aid the user. The SimplePlot library attempts to allow programmers to define and display charts in JavaScript with only a few simple lines of code. SimplePlot is found in the source code for this chapter at www.OraclePress.com. Figure 8-1 shows a chart generated using the SimplePlot API.

The SimplePlot API consists of a single object. This SimplePlot object, found in the SimplePlot.js file, is a wrapper around a more complex JavaScript ...

Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.