# data_adapter_line_chart.js

var data = [
    {"Type": "data1", "valueY": [100, 200, 300, 120, 320]},
    {"Type": "data2", "valueY": [150, 210, 269, -500, 600]},
];
var options = {
    id: "chart",
    data: {
        plain: data,
        keys: {
            name: 'Type',
            // Line Chart has two values (x, y) 
            // you have to define y (x is optional)
            y: 'valueY'
        }
    }
};
var lineChart = new C9.LineChart(options);
lineChart.draw();