mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 08:50:10 +00:00
修复Scatter散点图部分边界数据不显示的问题
This commit is contained in:
@@ -164,11 +164,9 @@ namespace XCharts.Runtime
|
||||
if (serieData.IsDataChanged())
|
||||
dataChanging = true;
|
||||
|
||||
float pX = m_Grid.context.x + xAxis.axisLine.GetWidth(theme.axis.lineWidth);
|
||||
float pY = m_Grid.context.y + yAxis.axisLine.GetWidth(theme.axis.lineWidth);
|
||||
float xDataHig = GetDataHig(xAxis, xValue, m_Grid.context.width);
|
||||
float yDataHig = GetDataHig(yAxis, yValue, m_Grid.context.height);
|
||||
var pos = new Vector3(pX + xDataHig, pY + yDataHig);
|
||||
var pos = new Vector3(m_Grid.context.x + xDataHig, m_Grid.context.y + yDataHig);
|
||||
|
||||
if (!m_Grid.Contains(pos))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user