mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 07:50:16 +00:00
[improve][serie] improve min-max data range
This commit is contained in:
@@ -349,6 +349,22 @@ namespace XCharts.Runtime
|
||||
}
|
||||
}
|
||||
|
||||
public DataZoom GetXDataZoomOfSerie(Serie serie)
|
||||
{
|
||||
if (serie == null) return null;
|
||||
foreach (var component in m_Components)
|
||||
{
|
||||
if (component is DataZoom)
|
||||
{
|
||||
var dataZoom = component as DataZoom;
|
||||
if (!dataZoom.enable) continue;
|
||||
if (dataZoom.IsContainsXAxis(serie.xAxisIndex))
|
||||
return dataZoom;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reutrn true when all the show axis is `Value` type.
|
||||
/// |纯数值坐标轴(数值轴或对数轴)。
|
||||
|
||||
Reference in New Issue
Block a user