修复Log轴时绘制异常的问题

This commit is contained in:
monitor1394
2021-04-29 19:17:12 +08:00
parent 83b876e80d
commit c4bc8c06e7
3 changed files with 28 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ namespace XCharts
{
int minIndex = axis.runtimeMinLogIndex;
float nowIndex = axis.GetLogValue(value);
return (nowIndex - minIndex) / (axis.splitNumber - 1) * totalWidth;
return (nowIndex - minIndex) / axis.splitNumber * totalWidth;
}
else
{