Chart types

24 May 201912 minutes to read

Essential PivotChart JS supports 18 different types of charts as follows:

  • Column
  • Stacking column
  • Bar
  • Stacking bar
  • Line
  • Step line
  • Spline
  • Area
  • Step area
  • Spline area
  • Stacking area
  • Pie
  • Doughnut
  • Pyramid
  • Funnel
  • Scatter
  • Bubble
  • WaterFall

Column chart

The column chart is the most commonly used chart type. It uses vertical bars (called columns) to display different values of one or more items. Points from adjacent series are drawn as bars next to each other. It is used to compare the frequency, count, total, or average of the data in different categories. It is ideal to show the variations in the value of an item over a period of time.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Column
            }
        });

    The following screenshot displays the column chart.

    JavaScript column chart control

    Stacking column chart

    The stacking column chart is similar to column chart except the Y-values. These Y-values stack on top of each other in a specified series order. This helps to visualize the relationship of parts to the whole chart across various categories.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.StackingColumn
            }
        });

    The following screenshot displays the stacking column chart.

    JavaScript stacking column chart control

    Bar chart

    The bar chart displays horizontal bars for each point in the series and points from adjacent series. Bar charts are used to compare values across various categories for displaying the variations in the value of an item over a period of time or comparing the values of several items in a single point of time.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Bar
            }
        });

    The following screenshot displays a bar chart.

    JavaScript bar chart control

    Stacking bar chart

    The stacking bar chart is a regular bar chart with the X-values stacked on top of each other in the specified series order.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.StackingBar
            }
        });

    The following screenshot displays the stacking bar chart.

    JavaScript bar chart control

    Line chart

    The line chart joins the data points on a plot by using straight lines that show trends in the data at equal intervals.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Line
            }
        });

    The following screenshot displays the line chart.

    JavaScript line chart control

    Step line chart

    Step line chart uses horizontal and vertical lines to connect the data points resulting in a step like progression.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.StepLine
            }
        });

    The following screenshot displays the step line chart.

    JavaScript step line chart control

    Spline chart

    The spline chart is similar to line chart whereas it connects different data points with curved lines instead of straight lines.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Spline
            }
        });

    The following screenshot displays the spline chart.

    JavaScript spline chart control

    Area chart

    The area chart emphasizes the degree of change of values over a period of time. Instead of rendering the data as discrete bars or columns, the area chart renders continuous ebb-and-flow pattern as defined against the y-axis.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Area
            }
        });

    The following screenshot displays the area chart.

    JavaScript area chart control

    Step area chart

    The step area chart is similar to the regular area chart except a straight line tracing the shortest path between the data points. The values are connected by continuous vertical and horizontal lines to form a step like progression.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.StepArea
            }
        });

    The following screenshot displays the step area chart.

    JavaScript step area chart control

    Spline area chart

    The spline area chart is similar to area chart which differs by connecting the data points of a series. It connects each series of points by a smooth spline curve.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.SplineArea
            }
        });

    The following screenshot displays the spline area chart.

    JavaScript spline area chart control

    Stacking area chart

    The stacking area chart is similar to regular area chart except the “Y-values”. These “Y-values” stack on top of each other in the specified series order. It helps to visualize the relationship of parts to the whole chart across various categories.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.StackingArea
            }
        });

    The following screenshot displays the Stacking Area Chart.

    JavaScript stacking area chart control

    Pie chart

    The pie chart is used to summarize a set of categorical data or displaying different values of a given variable (e.g., percentage distribution). This type of chart is a circle form that is divided into several segments. Each segment represents a particular category.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Pie
            }
        });

    The following screenshot displays the pie chart.

    JavaScript pie chart control

    Doughnut chart

    The doughnut chart is used to summarize a set of categorical data which possesses a doughnut like structure that is divided into several segments. Each segment represents a particular category.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Doughnut
            }
        });

    The following screenshot displays the doughnut chart.

    JavaScript doughnut chart control

    Pyramid chart

    The pyramid chart type displays the data in the form of a triangle. It helps you to visualize the data in a hierarchical structure without any axes.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Pyramid
            }
        });

    The following screenshot displays the pyramid chart.

    JavaScript pyramid chart control

    Funnel chart

    The funnel chart type displays the data in the form of an inverted triangle. It helps you to visualize the data in a hierarchical structure without any axes.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Funnel
            }
        });

    The following screenshot displays the funnel chart:

    JavaScript funnel chart control

    Scatter chart

    The scatter chart type displays the data as a collection of points corresponding to associated values.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Scatter
            }
        });

    The following screenshot displays the scatter chart:

    JavaScript scatter chart control

    Bubble chart

    The bubble chart type displays the data as a collection of bubbles.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.Bubble
            }
        });

    The following screenshot displays the bubble chart:

    JavaScript bubble chart control

    WaterFall chart

    The waterfall chart type is used to show how an initial value is increased and decreased by a series of intermediate values, leading to a final value.

  • JAVASCRIPT
  • $("#PivotChart1").ejPivotChart({
            //...
            commonSeriesOptions: {
                type: ej.PivotChart.ChartTypes.WaterFall
            }
        });

    The following screenshot displays the waterfall chart:

    JavaScript waterfall chart control

    Combination chart

    A combination chart combines two or more series types in a single chart. But there are some limitations in the combination chart. They are:

    1. The combination chart cannot combine the column and bar series.
    2. Th pie chart cannot be used with other series types.
  • JAVASCRIPT
  • $(function() {
            $("#PivotChart1").ejPivotChart({
                //...
                commonSeriesOptions: {
                    type: ej.PivotChart.ChartTypes.Line
                },
                seriesRendering: "onSeriesRenders"
            });
        });
    
        function onSeriesRenders(args) {
            this.model.series[5].type = ej.PivotChart.ChartTypes.Column;
            this.model.series[5].marker.visible = true;
        }

    JavaScript combinations of charts