Completed
Last Updated: 05 Mar 2014 13:40 by ADMIN
ADMIN
Marin Bratanov
Created on: 29 Aug 2013 08:09
Category: HtmlChart
Type: Feature Request
7
ADD a property that will control whether a series will be rendered in the plot area of a RadHtmlChart
The property for each series could be RenderInPlotArea=true|false
It will control whether the series will be rendered in the plot area, if set to false the series name will still be present in the legend, but grayed out, as if the end user has clicked it already to hide the series in the browser. This will give the developer programmatic contol over the initial state of the chart that the end user can modify later.
For the time being the following workaround can be used:
JavaScript:
	<script>
		function pageLoad() {
			var chart = $find("<%=RadHtmlChart1.ClientID%>");
			chart._chartObject.options.series[0].visible = false;
			chart.repaint();
		}
	</script>
ASPX:
		<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Width="600" Height="400">
			<PlotArea>
				<Series>
					<telerik:ColumnSeries Name="Series 1">
						<SeriesItems>
							<telerik:CategorySeriesItem Y="30" />
							<telerik:CategorySeriesItem Y="10" />
							<telerik:CategorySeriesItem Y="20" />
						</SeriesItems>
					</telerik:ColumnSeries>
					<telerik:ColumnSeries Name="Series 2">
						<SeriesItems>
							<telerik:CategorySeriesItem Y="5" />
							<telerik:CategorySeriesItem Y="12" />
							<telerik:CategorySeriesItem Y="8" />
						</SeriesItems>
					</telerik:ColumnSeries>
				</Series>
			</PlotArea>
		</telerik:RadHtmlChart>
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
3 comments
ADMIN
Misho
Posted on: 05 Mar 2014 13:40
The feature has been already implemented and will be available in Q2 2014 release. 
John
Posted on: 30 Oct 2013 20:47
I agree with Matt :)
matt
Posted on: 30 Oct 2013 17:44
Telerik -- this is a mandatory feature if the RadCharts are going to be anything other than a novelty. I work in the engineering field, and a chart is no use to us if we can't compare a given trend line (LineSeries) to other trend lines (other LineSeries). being able to do this dynamically via UI for disabling/enabling other indicators is a common feature found on financial charting websites (eg: Compare a stock ticker's trend to the S&P index, etc). 

we need the ability to toggle LineSeries on/off (visible/not-visible). 

however, we feel doing so should likewise remove it from the legend, as the legend should only represent what is present in the plot area.