jiawulin001 commented on issue #16840: URL: https://github.com/apache/echarts/issues/16840#issuecomment-1093774144
Interestingly enough, I find all bar charts start at 0. And since radius axis bar charts are based on original charts, they must also start at 0. @pissang Does Echarts need a new feature to accept a number as the starting value of the bar chart? However, there's still alternatives for @BillYu811 to achieve the effect you want. Though you may need to adjust the data a little bit. Here's an example. <details> <summary>Code Sample</summary> ``` option = { title: [ { text: 'Radial Polar Bar Label Position (middle)' } ], polar: { radius: [30, '80%'] }, radiusAxis: { min:0, max:30, axisLabel:{ formatter: value=>value-120 }, }, angleAxis: { type: 'category', data: [" 0-30", " 30-60", " 60-90", " 90-120", "120-150", "150-180", "180-210", "210-240", "240-270", "270-300", "300-330", "330-360"], startAngle: 75 }, tooltip: { formatter: (params)=> `${params.name}: ${(params.value-120).toFixed(1)}` }, series: { type: 'bar', color: "#F53700", data: [13, 13, 12, 11, 10, 10, 10, 11, 11, 13, 12, 13 ], //data: [-107,-107,-108,-109,-110,-110,-110,-109,-109,-107,-108,-107], coordinateSystem: 'polar', label: { show: true, formatter: (params)=> `${(params.value-120)}` } }, backgroundColor: '#fff', animation: false }; ``` </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org