Chart Types

28 Jun 201718 minutes to read

Essential PivotChart JS supports 17 different types of chart 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

Column Chart

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 data in different categories. It is ideal to show the variations in the value of an item over a period of time.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Column;
            });
        </script>
    </body>

    The following screenshot displays a Column Chart.

    Stacking Column Chart

    Stacking Column Chart is similar to column charts 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 whole across categories.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.StackingColumn;
            });
        </script>
    </body>

    The following screenshot displays the Stacking Column Chart.

    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 categories, for displaying the variations in the value of an item over time or for comparing the values of several items at a single point in time.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Bar;
            });
        </script>
    </body>

    The following screenshot displays a Bar Chart.

    Stacking Bar Chart

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

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.StackingBar;
            });
        </script>
    </body>

    The following screenshot displays the Stacking Bar Chart.

    Line Chart

    The Line Chart joins the data points on a plot using straight lines that show trends in data at equal intervals.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Line;
            });
        </script>
    </body>

    The following screenshot displays the Line Chart.

    Step Line Chart

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

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.StepLine;
            });
        </script>
    </body>

    The following screenshot displays the Step Line Chart.

    Spline Chart

    The Spline Chart is similar to line chart where as it connects different data points using curved lines instead of straight lines.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Spline;
            });
        </script>
    </body>

    The following screenshot displays the Spline Chart.

    Area Chart

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

  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Area;
            });
        </script>
    </body>

    The following screenshot displays the Area Chart.

    Step Area Chart

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

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.StepArea;
            });
        </script>
    </body>

    The following screenshot displays a Step Area Chart.

    Spline Area Chart

    Spline Area chart is similar to Area Chart with the difference in which the data points of a series are connected. It connects each series of points by a smooth spline curve.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.SplineArea;
            });
        </script>
    </body>

    The following Screenshot displays a Spline Area Chart.

    Stacking Area Chart

    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. This helps to visualize the relationship of parts to whole across categories.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.StackingArea;
            });
        </script>
    </body>

    The following screenshot displays a Stacking Area Chart.

    Pie Chart

    A 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 divided into a series of segments. Each segment represents a particular category.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Pie;
            });
        </script>
    </body>

    The following screenshot displays a Pie Chart.

    Doughnut Chart

    A Doughnut chart is also used to summarize a set of categorical data which possesses a doughnut like structure divided into a series of segments. Each segment represents a particular category.

  • HTML
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Doughnut;
            });
        </script>
    </body>

    The following screenshot displays a Doughnut Chart.

    Pyramid Chart

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

  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Pyramid;
            });
        </script>
    </body>

    The following screen shot displays the Pyramid Chart.

    Funnel Chart

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

  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Funnel;
            });
        </script>
    </body>

    The following screen shot displays the Funnel Chart.

    Scatter Chart

    The Scatter Chart type displays the data as a collection of points corresponding to the associated values.

  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Scatter;
            });
        </script>
    </body>

    The following screen shot displays the Scatter Chart.

    Bubble Chart

    The Bubble Chart type displays the data as a collection of bubbles.

  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Bubble;
            });
        </script>
    </body>

    The following screen shot displays the Bubble Chart.

    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. Can’t combine Column and Bar series.
    2. Pie Chart can’t be used with other series types.
  • JAVASCRIPT
  • <body>
        <div ng-controller="PivotChartCtrl">
            <div id="PivotChart1" ej-pivotchart e-commonseriesoptions-type="ctyp" e-seriesRendering="onSeriesRenders"/>
        </div>
        <script>
            angular.module('PivotChartApp', ['ejangular']).controller('PivotChartCtrl', function ($scope) {
                ///..
                $scope.ctype = ej.PivotChart.ChartTypes.Line;
                $scope.onSeriesRenders = function(args){
                    this.model.series[5].type = ej.PivotChart.ChartTypes.Column;
                    this.model.series[5].marker.visible = true;
                };
            });
        </script>
    </body>