hi,
i jave a chart with line series and it has a different behavior of the auto scale between 200 and 400 items (or more).
the first is loaded correctly and the first value shown in the Yaxis is 0.95 (see attached) but with 400 it starts form zero.
all items are all positive and greater than zero.
what configuration am i missing?
RadHtmlChart chart = new RadHtmlChart { Transitions = true, Skin = "Bootstrap", CssClass = "plutochart" };
chart.ID = "htmlChart";
chart.Legend.Appearance.BackgroundColor = Color.White;
chart.Legend.Appearance.Position = ChartLegendPosition.Bottom;
chart.Legend.Appearance.TextStyle.Bold = false;
chart.Legend.Appearance.TextStyle.FontFamily = "Helvetica";
chart.Legend.Appearance.TextStyle.Italic = false;
chart.Legend.Appearance.TextStyle.Color = Color.Black;
chart.Legend.Appearance.TextStyle.FontSize = 12;
chart.Legend.Appearance.TextStyle.Margin = "0";
chart.Legend.Appearance.TextStyle.Padding = "10";
chart.Appearance.FillStyle.BackgroundColor = Color.Transparent;
chart.PlotArea.XAxis.TitleAppearance.Visible = false;
chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = LocalizeHelper.DateTimeFormat;
chart.PlotArea.XAxis.MajorGridLines.Visible = false;
chart.PlotArea.XAxis.MinorGridLines.Visible = false;
/*
* nell'ascisse ci stanno al max 9 label quindi devo calcolare il corretto Step
*/
double gropu = (listCount / 9);
int step = Convert.ToInt32(Math.Ceiling(gropu));
chart.PlotArea.XAxis.LabelsAppearance.Step = step > 0 ? step : 1;
chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = -45;
chart.PlotArea.YAxis.TitleAppearance.Text = string.Empty;
chart.PlotArea.YAxis.TitleAppearance.TextStyle.Margin = "20";
chart.PlotArea.YAxis.MinorGridLines.Visible = false;
chart.PlotArea.YAxis.Type = HtmlChartValueAxisType.Numeric;
chart.PlotArea.YAxis.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
LineSeries itemSeries = new LineSeries { Name = quotationsTitle };
itemSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
itemSeries.LineAppearance.Width = 3;
itemSeries.TooltipsAppearance.Color = Color.White;
itemSeries.LabelsAppearance.Visible = false;
itemSeries.MarkersAppearance.Visible = false;
LineSeries minMaxLastSeries = new LineSeries { DataFieldY = "MinMaxLastQuoteDouble", Name = minMaxLastTitle };
chart.PlotArea.XAxis.DataLabelsField = "QuoteDateTime";
itemSeries.DataFieldY = "QuoteDouble";
itemSeries.TooltipsAppearance.ClientTemplate = @"#= kendo.format(\'{0:" + LocalizeHelper.RoundDoubleDecimalsToString + @"}\', dataItem.QuoteDouble) #
<br/>
#= dataItem.QuoteDateTimeToString #";
minMaxLastSeries.TooltipsAppearance.ClientTemplate = @"#= kendo.format(\'{0:" + LocalizeHelper.RoundDoubleDecimalsToString + @"}\', dataItem.MinMaxLastQuoteDouble) #
<br/>
#= dataItem.QuoteDateTimeToString #";
minMaxLastSeries.LineAppearance.Width = 5;
minMaxLastSeries.LabelsAppearance.Visible = true;
minMaxLastSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
minMaxLastSeries.MarkersAppearance.Visible = true;
minMaxLastSeries.MarkersAppearance.Size = 14;
minMaxLastSeries.MarkersAppearance.BackgroundColor = Color.Teal;
minMaxLastSeries.TooltipsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
minMaxLastSeries.MissingValues = MissingValuesBehavior.Gap;
LineSeries averageQuoteSeries = new LineSeries { DataFieldY = "AverageValue", Name = averageValueTitle };
averageQuoteSeries.LineAppearance.Width = 3;
averageQuoteSeries.LabelsAppearance.Visible = false;
averageQuoteSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
averageQuoteSeries.Appearance.FillStyle.BackgroundColor = Color.FromArgb(250, 152, 25);
averageQuoteSeries.MarkersAppearance.Visible = false;
averageQuoteSeries.TooltipsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
itemSeries.MissingValues = MissingValuesBehavior.Interpolate;
chart.PlotArea.Series.Add(itemSeries);
chart.PlotArea.Series.Add(averageQuoteSeries);
chart.PlotArea.Series.Add(minMaxLastSeries);