修复TooltiptitleFormatter设置为{b}后显示不准确的问题

This commit is contained in:
monitor1394
2023-12-01 08:39:27 +08:00
parent 735e36d6e5
commit bece2eb564
10 changed files with 33 additions and 41 deletions

View File

@@ -93,7 +93,7 @@ namespace XCharts.Example
//Debug.Log("OnDrawAfterSerie: " + serie.index);
if (serie.index != 0) return;
var dataPoints = serie.context.dataPoints;
if (dataPoints.Count > 0)
if (dataPoints.Count > 4)
{
var pos = dataPoints[3];
var grid = chart.GetChartComponent<GridCoord>();