优化Candlestick对时间轴的支持

This commit is contained in:
monitor1394
2025-10-30 22:48:36 +08:00
parent 0499126e55
commit 2cb82526bc
8 changed files with 108 additions and 70 deletions

View File

@@ -384,7 +384,7 @@ namespace XCharts.Runtime
else
{
var showData = serie.GetDataList(filterByDataZoom ? chart.GetXDataZoomOfSerie(serie) : null);
if (serie is Candlestick || serie is SimplifiedCandlestick)
if (dimension > 0 && (serie is Candlestick || serie is SimplifiedCandlestick))
{
foreach (var data in showData)
{
@@ -441,9 +441,9 @@ namespace XCharts.Runtime
if (!_serieTotalValueForMinMax.ContainsKey(j))
_serieTotalValueForMinMax[j] = 0;
double currData = 0;
if (serie is Candlestick)
if (serie is Candlestick || serie is SimplifiedCandlestick)
{
currData = showData[j].GetMaxData(false);
currData = showData[j].GetMaxData(false, dimension);
}
else
{