Basic example using dataStr method (with JSON data hard-coded in PHP page itself)

Chart

 

If you view the source of this page, you'll see that the JSON data is present in this same page (inside HTML code). We're not calling any external JSON (or script) files to serve JSON data. dataStr method is ideal when you've to plot small amounts of data.