mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
修复Scatter散点图部分边界数据不显示的问题
This commit is contained in:
@@ -70,6 +70,7 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2023.12.22) 修复`Scatter`散点图部分边界数据不显示的问题
|
||||
* (2023.12.21) 修复`TriggerTooltip()`接口在指定0或最大index时可能无法触发的问题
|
||||
* (2023.12.19) 修复`Legend`的`LabelStyle`设置`formatter`后不生效的问题
|
||||
* (2023.12.12) 增加`Legend`的`TextLimit`可限制图例显示文本的长度
|
||||
|
||||
@@ -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