4 Answers, 1 is accepted
I couldn't find a way to edit my post hence this post... the chart is built dynamically in code
RadHtmlChart chartAll = new RadHtmlChart() { ID = "chart_All" };
chartAll.ChartTitle.Text = "In-Process Time for All Operators";
chartAll.Legend.Appearance.Visible = true;
chartAll.Legend.Appearance.Position = ChartLegendPosition.Bottom;
chartAll.Pan.Enabled = true;
chartAll.Zoom.Enabled = true;
chartAll.Zoom.MouseWheel.Enabled = true;
chartAll.Transitions = true;
chartAll.PlotArea.XAxis.TitleAppearance.Text = "Time";
chartAll.PlotArea.XAxis.MajorGridLines.Visible = false;
chartAll.PlotArea.XAxis.MinorGridLines.Visible = false;
chartAll.PlotArea.XAxis.EnableBaseUnitStepAuto = true;
chartAll.PlotArea.YAxis.TitleAppearance.Text = "In-Process Time";
chartAll.PlotArea.YAxis.MinorGridLines.Visible = false;
chartAll.PlotArea.YAxis.MinValue = 0;
chartAll.PlotArea.YAxis.MaxValue = expectedTakt * 2;
chartAll.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0:0.#}";
List<ScatterLineSeries> lstLines = new List<ScatterLineSeries>();
ScatterLineSeries taktLineAll = new ScatterLineSeries();
taktLineAll.Name = "Expected Takt";
taktLineAll.DataFieldX = "Date";
taktLineAll.DataFieldY = "Takt";
taktLineAll.TooltipsAppearance.Visible = false;
taktLineAll.LabelsAppearance.Visible = false;
taktLineAll.MarkersAppearance.Visible = false;
taktLineAll.Appearance.FillStyle.BackgroundColor = Color.Red;
//nest controls
tabStrip.Tabs.Add(tabAll);
pageMulti.PageViews.Add(pageAll);
tabAll.PageViewID = pageAll.ID;
pageAll.Controls.Add(chartAll);
chartAll.PlotArea.Series.Add(taktLineAll);
Is there a way at this point to disable the series "taktLineAll" so that the data points are not plotted on the graph? The series will still show on the chart but ... toggled off....
Hi Kevin,
I have just answered your support ticket on the matter, for convenience I am pasting my answer as of below:
Setting the Visible=false property of the desired series will hide it, making it disabled at the chart legend at the same time:
List<ScatterLineSeries> lstLines = new List<ScatterLineSeries>();
ScatterLineSeries taktLineAll = new ScatterLineSeries();
taktLineAll.Visible = false;
If you want to hide a series from the chart and the legend permanently, you can do it by setting its VisibleInLegend="False" property:
taktLineAll.VisibleInLegend = false;
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thank you Vessy! That's I needed.... I had think the Visible threw me ....
thanks again!
Hi,
You are welcome, Kevin :) I am glad that my reply was helpful for you!
Regards,
Vessy
Progress Telerik
Тhe web is about to get a bit better!
The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.