mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
[improve][axis] support showStartLine and showEndLine in AngleAxis and RadiusAxis
This commit is contained in:
@@ -120,8 +120,11 @@ namespace XCharts.Runtime
|
||||
var pos2 = ChartHelper.GetPos(cenPos, polar.context.outsideRadius, currAngle, true);
|
||||
if (angleAxis.show && angleAxis.splitLine.show)
|
||||
{
|
||||
var lineWidth = angleAxis.splitLine.GetWidth(chart.theme.axis.splitLineWidth);
|
||||
UGL.DrawLine(vh, pos1, pos2, lineWidth, splitLineColor);
|
||||
if (angleAxis.splitLine.NeedShow(i - 1, size - 1))
|
||||
{
|
||||
var lineWidth = angleAxis.splitLine.GetWidth(chart.theme.axis.splitLineWidth);
|
||||
UGL.DrawLine(vh, pos1, pos2, lineWidth, splitLineColor);
|
||||
}
|
||||
}
|
||||
if (angleAxis.show && angleAxis.axisTick.show)
|
||||
{
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace XCharts.Runtime
|
||||
var pos = ChartHelper.GetPos(cenPos, totalWidth + tickWidth, startAngle, true);
|
||||
if (radiusAxis.show && radiusAxis.splitLine.show)
|
||||
{
|
||||
if (CanDrawSplitLine(angleAxis, i, size))
|
||||
if (CanDrawSplitLine(angleAxis, i, size) && radiusAxis.splitLine.NeedShow(i, size))
|
||||
{
|
||||
var outsideRaidus = totalWidth + radiusAxis.splitLine.GetWidth(chart.theme.axis.splitLineWidth) * 2;
|
||||
var splitLineColor = radiusAxis.splitLine.GetColor(chart.theme.axis.splitLineColor);
|
||||
|
||||
Reference in New Issue
Block a user