Aggregated Line Chart

var chart;
jQuery.get("/wp-content/uploads/examples/line/huge/price-per-day.json", function (data) {
    chart = ReactiveChart.chart({
        element: "_chart1",
        type: "x",
        title: "Price per day",
        xAxis: {
            type: "discrete",
            categoryType: "time",
            categorySeries: true
        },
        scrollbars: true,
        legend: false,
        series: [{
                id: "Price",
                shape: "line",
                aggregate: {
                    maxNrOfItems: 1000,
                    interval: "date",
                    summary: "avg"
                },
                data: data
            }]
    });
});

Line chart with data aggregation, showing a big set of data.