mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 02:10:16 +00:00
优化Candlestick对时间轴的支持
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user