增加ScatterChart散点图

This commit is contained in:
monitor1394
2019-07-21 23:10:38 +08:00
parent ff8057690c
commit 8a25a09435
16 changed files with 131255 additions and 45738 deletions

View File

@@ -176,7 +176,9 @@ namespace XCharts
{
var xdata = serie.xData[n];
var ydata = serie.yData[n];
if (Mathf.Abs(xValue - xdata) / xRate < 5 && Mathf.Abs(yValue - ydata) / yRate < 5)
var symbolSize = serie.symbol.GetSize(serie.data[n].data);
if (Mathf.Abs(xValue - xdata) / xRate < symbolSize
&& Mathf.Abs(yValue - ydata) / yRate < symbolSize)
{
m_Tooltip.dataIndex[i] = n;
serie.selected = true;