mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
[bug][axis] fix axis tick error (#209)
This commit is contained in:
@@ -612,12 +612,12 @@ namespace XCharts
|
||||
if ((axis.axisTick.inside && axis.IsBottom()) ||
|
||||
(!axis.axisTick.inside && axis.IsTop()))
|
||||
{
|
||||
sY = startY + axis.offset + lineWidth;
|
||||
sY = startY + lineWidth;
|
||||
eY = sY + tickLength;
|
||||
}
|
||||
else
|
||||
{
|
||||
sY = startY + axis.offset - lineWidth;
|
||||
sY = startY - lineWidth;
|
||||
eY = sY - tickLength;
|
||||
}
|
||||
|
||||
@@ -639,12 +639,12 @@ namespace XCharts
|
||||
if ((axis.axisTick.inside && axis.IsLeft()) ||
|
||||
(!axis.axisTick.inside && axis.IsRight()))
|
||||
{
|
||||
sX = startX + axis.offset + lineWidth;
|
||||
sX = startX + lineWidth;
|
||||
eX = sX + tickLength;
|
||||
}
|
||||
else
|
||||
{
|
||||
sX = startX + axis.offset - lineWidth;
|
||||
sX = startX - lineWidth;
|
||||
eX = sX - tickLength;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user