[bug][axis] fix showStartLabel and showEndLabel not work

This commit is contained in:
monitor1394
2022-07-20 07:38:18 +08:00
parent 0355e3ed46
commit 47ee421913
6 changed files with 24 additions and 14 deletions

View File

@@ -15,7 +15,6 @@ namespace XCharts.Runtime
public override void Update()
{
UpdateAxisMinMaxValue(component.index, component);
UpdatePointerValue(component);
}
@@ -31,7 +30,7 @@ namespace XCharts.Runtime
private void UpdatePosition(XAxis axis)
{
var grid = chart.GetChartComponent<GridCoord>(axis.gridIndex);
if (grid != null && axis is XAxis && axis.IsValue())
if (grid != null)
{
var relativedAxis = chart.GetChartComponent<YAxis>(axis.gridIndex);
axis.context.x = grid.context.x;