A Pareto chart is a type of chart that contains both bars and a line graph, where individual values are represented in descending order by bars, and the cumulative total is represented by the line.
Represents the cumulative percentage of the total number of occurrences, total cost, or total of the particular unit of measure.
Mark data points with built-in shapes such as circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, pentagons, crosses, and pluses. In addition to these shapes, use images to make the points more attractive.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
The Vue Pareto Chart can be transposed vertically to view the data in a different perspective.
Customize the color, border, marker and dash array for the pareto column and line series using built-in APIs to make it visually unique.
Easily get started with Vue Pareto Chart by using a few simple lines of Vue code, as demonstrated below. Also explore our Vue Pareto Chart Example that shows how to render and configure the chart.
<template>
<div id="app">
<ejs-chart id="container" :primaryXAxis='primaryXAxis'>
<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 { ChartPlugin, LineSeries, StackingColumnSeries, Tooltip, ColumnSeries, Category, Legend, ParetoSeries, Highlight } from "@syncfusion/ej2-vue-charts";
Vue.use(ChartPlugin);
export default {
data() {
return {
seriesData: [ { x: 'Button Defect', y: 23 }, { x: 'Pocket Defect', y: 16 },
{ x: 'Collar Defect', y: 10 }, { x: 'Cuff Defect', y: 7 },
{ x: 'Sleeve Defect', y: 6 }, { x: 'Other Defect', y: 2}],
primaryXAxis: {
valueType: 'Category',
},
paretoOptions: {
marker: { visible: true, isFilled: true, width: 7, height: 7 },
dashArray: '3,2',
width: 2
},
cornerRadius: { topLeft: Browser.isDevice? 4 : 6, topRight: Browser.isDevice ? 4 : 6 },
};
},
provide: {
chart: [StackingColumnSeries, LineSeries, Category, ColumnSeries, Legend, Tooltip, ParetoSeries, Highlight]
}
};
</script>
<!DOCTYPE html>
<html>
<body style>
<div id="app"></div>
</body>
</html>
Learn the available options to customize Vue Pareto chart.
Explore the Vue Pareto Chart APIs.