Pareto Chart in Vue Component

14 Oct 202424 minutes to read

Pareto

Pareto charts are used to find the cumulative values of data in different categories. It is a combination of Column and Line series, where the initial values are represented by the column chart and the cumulative values are represented by the line chart.

To render a pareto series in your chart, you need to follow a few steps to configure it correctly. Here’s a concise guide on how to do this:

  • Set the series type: Define the series type as Pareto in your chart configuration. This indicates that the data should be represented as a pareto chart, will use a combination of column and line series.

  • Inject the necessary modules: Use the provide: { chart: [ParetoSeries, ColumnSeries, LineSeries]} method to inject the ParetoSeries, ColumnSeries, LineSeries modules into your chart. This step is essential, as it ensures that the necessary functionalities for rendering pareto series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";


const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Pareto chart - Defects in Shirts';
const legendSettings = { visible: true };
const tooltip = {
  enable: true,
  shared: true
};
const paretoOptions = {
  marker: {   
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  width: 2
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Pareto chart - Defects in Shirts',
      legendSettings: { visible: true },
      tooltip: {
        enable: true,
        shared: true
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        width: 2
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Binding data with series

You can bind data to the chart using the dataSource property within the series configuration. This allows you to connect a JSON dataset or remote data to your chart. To display the data correctly, map the fields from the data to the chart series xName and yName properties.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";


const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Pareto chart - Defects in Shirts';
const legendSettings = { visible: true };
const tooltip = {
  enable: true,
  shared: true
};
const paretoOptions = {
  marker: {   
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  width: 2
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Pareto chart - Defects in Shirts',
      legendSettings: { visible: true },
      tooltip: {
        enable: true,
        shared: true
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        width: 2
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Pareto customization

Fill

Use the fill property to apply a color to the pareto line. By default, a color based on the theme is used.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  fill: '#F7523F'
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        fill: '#F7523F'
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Width

Use the width property to control the thickness of the line for the pareto series, which affects its visual weight on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  fill: '#F7523F',
  width: 2
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        fill: '#F7523F',
        width: 2
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Dash array

The dashArray property determines the pattern of dashes and gaps in the pareto line series.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  fill: '#F7523F',
  width: 2,
  dashArray: '3,3'
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        fill: '#F7523F',
        width: 2,
        dashArray: '3,3'
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Marker

Use the marker property to display and customize markers for individual points in a pareto line.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  marker: { 
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  fill: '#F7523F',
  width: 2
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        fill: '#F7523F',
        width: 2
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Show axis

Use the showAxis property to show or hide the secondary axis for the pareto series.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  marker: { 
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  fill: '#F7523F',
  width: 2,
  showAxis: false
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        fill: '#F7523F',
        width: 2,
        showAxis: false
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Empty points

Data points with null or undefined values are considered empty. Empty data points are ignored and not plotted on the chart.

Mode

Use the mode property to define how empty or missing data points are handled in the series. The default mode for empty points is Gap.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Collar Defect', y: null },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 },
  { x: 'Stitching Defect', y: null },
  { x: 'Zipper Defect', y: 3 },
  { x: 'Fabric Defect', y: 9 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  marker: { 
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  fill: '#F7523F',
  width: 2
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};
const emptyPointSettings = {
  mode: 'Average'
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Collar Defect', y: null },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 },
        { x: 'Stitching Defect', y: null },
        { x: 'Zipper Defect', y: 3 },
        { x: 'Fabric Defect', y: 9 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        fill: '#F7523F',
        width: 2
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      },
      emptyPointSettings: {
        mode: 'Average'
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Fill

Use the fill property to customize the fill color of empty points in the series.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Collar Defect', y: null },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 },
  { x: 'Stitching Defect', y: null },
  { x: 'Zipper Defect', y: 3 },
  { x: 'Fabric Defect', y: 9 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  marker: { 
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  fill: '#F7523F',
  width: 2
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};
const emptyPointSettings = {
  mode: 'Average',
  fill: 'red'
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Collar Defect', y: null },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 },
        { x: 'Stitching Defect', y: null },
        { x: 'Zipper Defect', y: 3 },
        { x: 'Fabric Defect', y: 9 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        fill: '#F7523F',
        width: 2
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      },
      emptyPointSettings: {
        mode: 'Average',
        fill: 'red'
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Border

Use the border property to customize the width and color of the border for empty points.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Collar Defect', y: null },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 },
  { x: 'Stitching Defect', y: null },
  { x: 'Zipper Defect', y: 3 },
  { x: 'Fabric Defect', y: 9 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Defects in Shirts';
const legendSettings = { visible: true, enableHighlight: true };
const tooltip = {
  enable: true,
  shared: true,
  format: '${series.name} : <b>${point.y}</b>'
};
const paretoOptions = {
  marker: { 
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  fill: '#F7523F',
  width: 2
};
const cornerRadius = { 
  topLeft: Browser.isDevice ? 4 : 6, 
  topRight: Browser.isDevice ? 4 : 6 
};
const emptyPointSettings = {
  mode: 'Average',
  fill: 'red',
  border: { width: 2, color: 'green' }
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' opacity=0.75 columnWidth=0.4 :paretoOptions='paretoOptions' :cornerRadius='cornerRadius' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight } from "@syncfusion/ej2-vue-charts";
import { Browser } from '@syncfusion/ej2-base';

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Collar Defect', y: null },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 },
        { x: 'Stitching Defect', y: null },
        { x: 'Zipper Defect', y: 3 },
        { x: 'Fabric Defect', y: 9 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Defects in Shirts',
      legendSettings: { visible: true, enableHighlight: true },
      tooltip: {
        enable: true,
        shared: true,
        format: '${series.name} : <b>${point.y}</b>'
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        fill: '#F7523F',
        width: 2
      },
      cornerRadius: { 
        topLeft: Browser.isDevice ? 4 : 6, 
        topRight: Browser.isDevice ? 4 : 6 
      },
      emptyPointSettings: {
        mode: 'Average',
        fill: 'red',
        border: { width: 2, color: 'green' }
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip, Highlight]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Events

Series render

The seriesRender event allows you to customize series properties, such as data, fill, and name, before they are rendered on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea' :seriesRender='seriesRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";


const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Pareto chart - Defects in Shirts';
const legendSettings = { visible: true };
const tooltip = {
  enable: true,
  shared: true
};
const paretoOptions = {
  marker: {   
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  width: 2
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]);
const seriesRender = function (args) {
  args.fill = 'green';
};

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea' :seriesRender='seriesRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Pareto chart - Defects in Shirts',
      legendSettings: { visible: true },
      tooltip: {
        enable: true,
        shared: true
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        width: 2
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]
  },
  methods: {
    seriesRender: function (args) {
      args.fill = 'green';
    }
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Point render

The pointRender event allows you to customize each data point before it is rendered on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";


const seriesData = [
  { x: 'Button Defect', y: 23 },
  { x: 'Pocket Defect', y: 16 },
  { x: 'Coller Defect', y: 10 },
  { x: 'Cuff Defect', y: 7 },
  { x: 'Sleeve Defect', y: 6 },
  { x: 'Other Defect', y: 2 }
];
const primaryXAxis = {
  interval: 1,
  valueType: 'Category',
  majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
  majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
  lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
};
const primaryYAxis = {
  title: 'Frequency of Occurence',
  minimum: 0,
  maximum: 25,
  interval: 5,
  lineStyle: { width: 0 },
  majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
  minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
};
const chartArea = {
  border: {
    width: 0
  }
};
const title = 'Pareto chart - Defects in Shirts';
const legendSettings = { visible: true };
const tooltip = {
  enable: true,
  shared: true
};
const paretoOptions = {
  marker: {   
    visible: true, 
    isFilled: true, 
    width: 7, 
    height: 7 
  },
  width: 2
};

provide('chart', [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]);
const pointRender= function (args) {
  if (args.point.index % 2 !== 0) {
    args.fill = '#ff6347';
  }
  else {
    args.fill = '#009cb8';
  }
};

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :legendSettings='legendSettings' :tooltip='tooltip' :chartArea='chartArea' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Pareto' xName='x' yName='y' name='Defect' width='2' :paretoOptions='paretoOptions'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data: function () {
    return {
      seriesData: [
        { x: 'Button Defect', y: 23 },
        { x: 'Pocket Defect', y: 16 },
        { x: 'Coller Defect', y: 10 },
        { x: 'Cuff Defect', y: 7 },
        { x: 'Sleeve Defect', y: 6 },
        { x: 'Other Defect', y: 2 }
      ],
      primaryXAxis: {
        interval: 1,
        valueType: 'Category',
        majorGridLines: { width: 0 }, minorGridLines: { width: 0 },
        majorTickLines: { width: 0 }, minorTickLines: { width: 0 },
        lineStyle: { width: 0 }, labelIntersectAction: 'Rotate45'
      },
      primaryYAxis: {
        title: 'Frequency of Occurence',
        minimum: 0,
        maximum: 25,
        interval: 5,
        lineStyle: { width: 0 },
        majorTickLines: { width: 0 }, majorGridLines: { width: 1 },
        minorGridLines: { width: 1 }, minorTickLines: { width: 0 }
      },
      chartArea: {
        border: {
          width: 0
        }
      },
      title: 'Pareto chart - Defects in Shirts',
      legendSettings: { visible: true },
      tooltip: {
        enable: true,
        shared: true
      },
      paretoOptions: {
        marker: { 
          visible: true, 
          isFilled: true, 
          width: 7, 
          height: 7 
        },
        width: 2
      }
    };
  },
  provide: {
    chart: [ParetoSeries, LineSeries, ColumnSeries, Category, Legend, Tooltip]
  },
  methods: {
    pointRender: function (args) {
      if (args.point.index % 2 !== 0) {
        args.fill = '#ff6347';
      }
      else {
        args.fill = '#009cb8';
      }
    }
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

See also