var chart5Options = {
    source: 'superstore-sales-csv-5',
    columns: ['Order Date', 'Customer Segment'],
    timeInterval: 'month',
    colors: colors,
    yGrid: false,
    yLabel: 'Orders'
};

popily.chart.getAndRender('#chart-1', chart5Options);
var chart2Options = {
    source: 'superstore-sales-csv-5',
    columns: ['Profit', 'Sales', 'Customer Segment'],
    xLabel: 'Reported Profit',
    yLabel: 'Reported Sales',
    colors: colors,
    yGrid: false,
    xGrid: false,
    transformations: [{
        column: 'Profit',
        op: 'gt',
        values: 4000
    },
    {
        column: 'Profit',
        op: 'lt',
        values: 16000
    }],
};


popily.chart.getAndRender('#chart-2', chart2Options);
var chart3Options = {
    source: 'superstore-sales-csv-5',
    columns: ['Sales', 'Product Category', 'Customer Segment'],
    calculation: 'average',
    xColumn: 'Product Category',
    groupByColumn: 'Customer Segment',
    rotated: true,
    colors: colors,
    yGrid: false,
};

popily.chart.getAndRender('#chart-3', chart3Options);
var chart4Options = {
    source: 'superstore-sales-csv-5',
    columns: ['Sales', 'Customer Segment', 'Product Category'],
    calculation: 'sum',
    colors: colors,
    yGrid: false,
    transformations: [{
        column: 'Customer Segment',
        op: 'eq',
        values: ['Consumer', 'Corporate', 'Home Office']
    }],
};

popily.chart.getAndRender('#chart-4', chart4Options);
var chart5Options = {
    source: 'superstore-sales-csv-5',
    columns: ['Order Date', 'Product Category'],
    timeInterval: 'month',
    colors: colors,
    yGrid: false,
    yLabel: 'Orders'
};

popily.chart.getAndRender('#chart-5', chart5Options);