Coordinate
Configuration
Cartesian Coordinate
// use Cartesian coordinate
chart.coord('rect');
// transpose coordinate, needed when drawing bar chart(horizontal)
chart.coord({
transposed: true
});
chart.coord('rect', {
transposed: true
});Polar Coordinate
// use polar coordinate
chart.coord('polar');
// more configurations
chart.coord('polar', {
transposed: true, // transpose coordinate
startAngle: {Number}, // starting angle
endAngle: {Number}, // ending angle
innerRadius: {Number}, // Inner ring radius, range of [0, 1]
radius: {Number} // radius, range of [0, 1]
});Get Coordinate Instance
Cartesian Coordinate
Polar Coordinate
Demos
Donut Chart

Draw a semicircle pie chart

Last updated