Series in JQuery PivotChart widget

24 May 2019 / 1 minute to read

Series in JQuery PivotChart widget point customization

By using the fill and border properties of the chart series, you can customize the series color, border color, and border width of the pivot chart.

  • javascript
  • $(function()
    {
        $("#PivotChart1").ejPivotChart(
        {
            ....
            commonSeriesOptions:
            {
                type: ej.PivotChart.ChartTypes.Column
            },
            seriesRendering: "onSeriesRender"
        });
    });
    
    function onSeriesRender(args)
    {
        this.model.series[0].points[0].fill = "aqua";
        this.model.series[0].points[0].border = {
            color: "black",
            width: 2
        };
    }

    Series customization in JavaScript pivot chart control