mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 18:30:14 +00:00
[feature][polar] support multiple bar and stack bar in polar
This commit is contained in:
@@ -135,6 +135,10 @@ namespace XCharts.Runtime
|
||||
var tickLength = axis.axisTick.GetLength(chart.theme.axis.tickLength);
|
||||
var tickVector = ChartHelper.GetVertialDire(dire) *
|
||||
(tickLength + axis.axisLabel.distance);
|
||||
if (axis.IsCategory())
|
||||
{
|
||||
totalWidth += polar.context.radius / axis.data.Count / 2;
|
||||
}
|
||||
return ChartHelper.GetPos(cenPos, totalWidth, startAngle, true) + tickVector;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user