[feature][axis] add showStartLine and showEndLine for AxisSplitLine

This commit is contained in:
monitor1394
2022-09-06 22:54:40 +08:00
parent 83744777c5
commit 16d055abc0
7 changed files with 41 additions and 6 deletions

View File

@@ -817,11 +817,11 @@ namespace XCharts
}
if (axis.splitLine.show)
{
if (axis.splitLine.NeedShow(i))
if (axis.splitLine.NeedShow(i, size))
{
if (orient == Orient.Horizonal)
{
if (relativedAxis == null || !MathUtil.Approximately(current, relativedAxis.context.x))
if (relativedAxis == null || !relativedAxis.axisLine.show || !MathUtil.Approximately(current, relativedAxis.context.x))
{
ChartDrawer.DrawLineStyle(vh,
lineType,
@@ -885,7 +885,7 @@ namespace XCharts
}
else
{
if (relativedAxis == null || !MathUtil.Approximately(current, relativedAxis.context.y))
if (relativedAxis == null || !relativedAxis.axisLine.show || !MathUtil.Approximately(current, relativedAxis.context.y))
{
ChartDrawer.DrawLineStyle(vh,
lineType,