YouTip LogoYouTip

Echarts Pie

# ECharts Pie Chart In the previous chapter, we learned how to draw a simple bar chart using ECharts. In this chapter, we will draw a pie chart. The pie chart mainly uses the arc of the sector to show the proportion of different categories in the total. Its data format is simpler than the bar chart, with only one-dimensional values and no need for categories. Since it's not on a Cartesian coordinate system, it also doesn't require xAxis, yAxis. ## Example myChart.setOption({series : [{name: 'Traffic Source', type: 'pie', // Set chart type to pie chart radius: '55%', // Pie chart radius
← Docker MachineEcharts Setup β†’