增加DataZoom对数值轴的支持 #71

This commit is contained in:
monitor1394
2021-03-02 09:16:53 +08:00
parent 84a13e03e8
commit ef3817d231
6 changed files with 205 additions and 68 deletions

View File

@@ -843,6 +843,11 @@ namespace XCharts
Mathf.Abs(axis.runtimeMinValue) * (grid.runtimeHeight / (Mathf.Abs(axis.runtimeMinValue) + Mathf.Abs(axis.runtimeMaxValue)));
}
}
if (dataZoom != null && dataZoom.enable)
{
if (axis is XAxis) dataZoom.SetXAxisIndexValueInfo(axisIndex, tempMinValue, tempMaxValue);
else dataZoom.SetXAxisIndexValueInfo(axisIndex, tempMinValue, tempMaxValue);
}
if (updateChart)
{
UpdateAxisLabelText(axis);