mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
[optimize] optimize interact and performance
This commit is contained in:
@@ -179,6 +179,7 @@ namespace XCharts.Runtime
|
||||
private void SetTooltipIndicatorLabel(Axis axis, ChartLabel label)
|
||||
{
|
||||
if (label == null) return;
|
||||
if (double.IsPositiveInfinity(axis.context.pointerValue)) return;
|
||||
label.SetActive(true);
|
||||
label.SetLabelActive(true);
|
||||
label.SetPosition(axis.context.pointerLabelPosition);
|
||||
@@ -234,7 +235,6 @@ namespace XCharts.Runtime
|
||||
|
||||
private void UpdateAxisPointerDataIndex(Serie serie, XAxis xAxis, YAxis yAxis, GridCoord grid, bool isTriggerAxis)
|
||||
{
|
||||
|
||||
serie.context.pointerAxisDataIndexs.Clear();
|
||||
if (yAxis.IsCategory())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user