mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 10:50:08 +00:00
优化MarkLine的表现
This commit is contained in:
@@ -80,6 +80,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2025.09.05) 优化`MarkLine`的表现
|
||||||
* (2025.09.01) 增加`AxisLine`的`startExtendLength`和`endExtendLength`设置轴线的延长线
|
* (2025.09.01) 增加`AxisLine`的`startExtendLength`和`endExtendLength`设置轴线的延长线
|
||||||
* (2025.08.27) 修复`Serie`的`TitleStyle`在数据变更时不及时刷新的问题
|
* (2025.08.27) 修复`Serie`的`TitleStyle`在数据变更时不及时刷新的问题
|
||||||
* (2025.05.19) 修复`TMP`开启时`Axis`运行报错
|
* (2025.05.19) 修复`TMP`开启时`Axis`运行报错
|
||||||
|
|||||||
@@ -292,17 +292,19 @@ namespace XCharts.Runtime
|
|||||||
switch (data.type)
|
switch (data.type)
|
||||||
{
|
{
|
||||||
case MarkLineType.Min:
|
case MarkLineType.Min:
|
||||||
var serieData = SerieHelper.GetMinSerieData(serie, data.dimension, dataZoom);
|
var serieData = SerieHelper.GetMinSerieData(serie, data.dimension, null);
|
||||||
data.runtimeValue = serieData.GetData(data.dimension);
|
data.runtimeValue = serieData.GetData(data.dimension);
|
||||||
var pX = GetAxisPosition(grid, xAxis, dataZoom, serieDataCount, serieData.index);
|
var pX = GetAxisPosition(grid, xAxis, dataZoom, serieDataCount, serieData.index);
|
||||||
var pY = GetAxisPosition(grid, yAxis, dataZoom, serieDataCount, data.runtimeValue);
|
var pY = GetAxisPosition(grid, yAxis, dataZoom, serieDataCount, data.runtimeValue);
|
||||||
return new Vector3(pX, pY);
|
//return new Vector3(pX, pY);
|
||||||
|
return serieData.context.position;
|
||||||
case MarkLineType.Max:
|
case MarkLineType.Max:
|
||||||
serieData = SerieHelper.GetMaxSerieData(serie, data.dimension, dataZoom);
|
serieData = SerieHelper.GetMaxSerieData(serie, data.dimension, null);
|
||||||
data.runtimeValue = serieData.GetData(data.dimension);
|
data.runtimeValue = serieData.GetData(data.dimension);
|
||||||
pX = GetAxisPosition(grid, xAxis, dataZoom, serieDataCount, serieData.index);
|
pX = GetAxisPosition(grid, xAxis, dataZoom, serieDataCount, serieData.index);
|
||||||
pY = GetAxisPosition(grid, yAxis, dataZoom, serieDataCount, data.runtimeValue);
|
pY = GetAxisPosition(grid, yAxis, dataZoom, serieDataCount, data.runtimeValue);
|
||||||
return new Vector3(pX, pY);
|
//return new Vector3(pX, pY);
|
||||||
|
return serieData.context.position;
|
||||||
case MarkLineType.Custom:
|
case MarkLineType.Custom:
|
||||||
if (data.zeroPosition)
|
if (data.zeroPosition)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user