Data from URL

# data_url.js

var chart = c3.generate({ data: { url: '/data/c3_test.csv' } }); setTimeout(function () { c3.generate({ data: { url: '/data/c3_test.json', mimeType: 'json' } }); }, 1000);

# c3_test.csv

data1,data2,data3
120,80,200
140,50,210
170,100,250
150,70,300
180,120,280

# c3_test.json

{
  "data1": [220, 240, 270, 250, 280],
  "data2": [180, 150, 300, 70, 120],
  "data3": [200, 310, 150, 100, 180]
}