Vue pie chart is a circular graphic, which is ideal for displaying proportional values between different categories.
Legends are used to show information about each point, to know about its contribution towards the total sum. You can collapse the point using legend click.
Customize the radius of the pie to change the look and functionality of the chart.
Customize the start and end angles of the chart to achieve the semi-pie.
Show the detail about data points with the help of data label support. You can place the label inside and outside the chart. Connector lines can be used to connect the outside label with charts.
Arranges data labels smartly to avoid overlapping when the data point values fall in close range.
Group the points in pie chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.
Focus-in on the data within the data using drilldown operation.
Customize the radius of individual slice using built-in APIs.
Move the center of the pie relative to the plot area.
Customize the look and feel of the pie using built-in APIs.
<template>
<div id="app">
<ejs-accumulationchart id="container">
<e-accumulation-series-collection>
<e-accumulation-series :dataSource='seriesData' type='Pie' xName='x' yName='y'> </e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>
</div>
</template>
<script>
import { AccumulationChartPlugin, PieSeries } from "@syncfusion/ej2-charts";
Vue.use(AccumulationChartPlugin);
export default {
data() {
return {
seriesData: [
{ x: 'United States', y: 45, text: 'USA', fill: '#00226C' },
{ x: 'Australia', y: 53, text: 'AUS: 14%', fill: '#0450C2' },
{ x: 'China', y: 56, text: 'CHN', fill: '#0073DC' },
{ x: 'India', y: 61, text: 'IND', fill: '#0D98FF' },
{ x: 'Japan', y: 13, text: 'JPN', fill: '#9CD9FF' },
{ x: 'United Kingdom', y: 71, text: 'UK', fill: '#0450C2' }
],
};
}
};
</script>
<!DOCTYPE html>
<html>
<body style>
<div id="app"></div>
</body>
</html>