We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

JavaScript Box and Whisker charts are used to visualize a group of numerical data through their quartiles. It is also referred as box plot. Box plots may also have lines extending vertically from the boxes (whiskers) indicating variability outside the upper and lower quartiles.


Box plot mode

Supports different types of rendering mode such us exclusive, inclusive, and normal.


Outlier

Represent the values that are lying beyond the minimum and maximum values of the data point with outlier. Usually represented with a circle.


Show mean

Show meanAllows you to enable or disable the average value of box plot.


Multiple axes

Use multiple axes to plot different data sets that widely vary from one other.


Multi series

Allows you to plot multiple series in a single chart to compare different data sets. Enabling legend and tooltip gives more information about the individual series.


Data label

Shows the detail about the data points with the help of data label support.


Customization

Customize the color, thickness, and border of the box plot with in APIs to make it visually unique.


Code snippet

import { Chart, BoxAndWhiskerSeries, Category } from '@syncfusion/ej2-charts';
Chart.Inject(BoxAndWhiskerSeries, Category);

let chart: Chart = new Chart({
    primaryXAxis: {
        valueType: 'Category'
    },
    series:[
       {
            type: 'BoxAndWhisker',
            boxPlotMode: 'Normal',
            dataSource: [
                { x: 'Development', y: [22, 22, 23, 25, 25, 25, 26, 27, 27, 28, 28, 29, 30, 32, 34, 32, 34, 36, 35, 38] },
                { x: 'Testing', y: [22, 33, 23, 25, 26, 28, 29, 30, 34, 33, 32, 31, 50] },
                { x: 'HR', y: [22, 24, 25, 30, 32, 34, 36, 38, 39, 41, 35, 36, 40, 56] },
                { x: 'Finance', y: [26, 27, 28, 30, 32, 34, 35, 37, 35, 37, 45] },
                { x: 'R&D', y: [26, 27, 29, 32, 34, 35, 36, 37, 38, 39, 41, 43, 58] },
                { x: 'Sales', y: [27, 26, 28, 29, 29, 29, 32, 35, 32, 38, 53] },
                { x: 'Inventory', y: [21, 23, 24, 25, 26, 27, 28, 30, 34, 36, 38] },
                { x: 'Graphics', y: [26, 28, 29, 30, 32, 33, 35, 36, 52] },
                { x: 'Training', y: [28, 29, 30, 31, 32, 34, 35, 36] }
            ],
            xName: 'x',
            yName: 'y',
        }
],
}, '#Chart');
<!DOCTYPE html>
<html>

<head></head>

<body style = 'overflow: hidden'> 
    <div id="container">
     <div id="Chart"></div>
    </div>

    <style>
        
        #control-container {
            padding: 0px !important;
        }
    </style>
</body>

</html>

Learning Resources

UG

Line Chart User Guide

Learn the available options to customize JavaScript Box and Whisker chart.

API

Line Chart API Reference

Explore the JavaScript Box and Whisker chart APIs.


50+ JAVASCRIPT UI CONTROLS

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon