diff --git a/htdocs/data/c3_test_3.json b/htdocs/data/c3_test_3.json new file mode 100644 index 0000000..c08c9c7 --- /dev/null +++ b/htdocs/data/c3_test_3.json @@ -0,0 +1,6 @@ +[ + { "id": 1, "name": "abc", "data1": 1200, "data2": 500 }, + { "id": 2, "name": "efg", "data1": 900, "data2": 600 }, + { "id": 3, "name": "pqr", "data1": 1150, "data2": 300 }, + { "id": 4, "name": "xyz", "data1": 1020, "data2": 900 } +] diff --git a/htdocs/samples/data_url.html b/htdocs/samples/data_url.html index c30390a..6a4a66f 100644 --- a/htdocs/samples/data_url.html +++ b/htdocs/samples/data_url.html @@ -37,6 +37,16 @@ }); }, 3000); + setTimeout(function () { + chart.load({ + url: '/data/c3_test_3.json', + mimeType: 'json', + keys: { + value: ['data1', 'data2'] + } + }); + }, 4000); +