Line 95: AutoLayout="true">
Line 96: <Series>
Line 97: <telerik:ChartSeries Name="Series 1" >
Line 98: <Appearance BarWidthPercent="100">
Line 99: </Appearance>
I get the above error when I try the code in the website.
<telerik:RadChart ID="RadChart1" runat="server" SeriesOrientation="Horizontal" Height="140" AutoLayout="true"> <Series>
<telerik:ChartSeries Name="Series 1" >
<Appearance BarWidthPercent="100">
</Appearance>
<Items>
<telerik:ChartSeriesItem Name="Item 1" YValue="5">
</telerik:ChartSeriesItem>
</Items>
</telerik:ChartSeries>
</Series>
<PlotArea>
<YAxis AutoScale="False" MaxValue="10" MinValue="0" Step="1">
<AxisLabel>
<Appearance RotationAngle="0">
</Appearance>
</AxisLabel>
</YAxis>
</PlotArea>
</telerik:RadChart>
Why is that? I have a registered version of telerik.
I have added following assemblies as well.
using
Telerik.Web.UI;
using
Telerik.Web.Design;
using
Telerik.Charting;
Please advice ASAP.
thanks
6 Answers, 1 is accepted
Hi pra raj,
You need to add one additional register directive in order for the RadChart control to work correctly as the Telerik.Charting namespace contains some core charting classes:
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %> |
Hope this helps.
All the best,
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Above suggestions didn't work for me. Is there any other alternate to resolve it.
please see below my code:
Using
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%
@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %>
<%
@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.Design" tagprefix="telerik" %>
<asp:UpdatePanel ID="updCapacityDelay" runat="server" RenderMode="Inline">
<ContentTemplate>
<telerik:RadChart ID="RadCharts" runat="server" Skin="WebBlue" AutoLayout="true" Height="350px" Width="680px" SeriesOrientation="Horizontal">
<Series>
<telerik:ChartsSeries DataYColumn="RIID" Name="CapacityDelay">
</telerik:ChartsSeries>
</Series>
</telerik:RadChart>
</ContentTemplate>
</asp:UpdatePanel>
Please help!
The tag should be telerik:ChartSeries and not telerik:ChartsSeries.
All the best,
Giuseppe
the Telerik team
I have another issue with Radchart zoom in option. could help me out please?
I designed the radchart with below code and able to see the results from the database.
I would like to use the zoom in option on x and y axis at code behind. Am not having the properties to achive this requirement.
As I didn't use chart area on below code, am using zoom option on Plotarea, Thats way its not giving the option.
I don't want use this code (<ClientSettings EnableZoom="True" ScrollMode="Both"/>)due to some performance issues.
Please could you suggest How Could I design the radchart to get zoom option?
<
telerik:RadChart AutoLayout="True" Height="450px" ID="CapacityRadChart"
runat="server" Skin="WebBlue" Width="935px" OnClick="CapacityRadchartClick">
<%
--<ClientSettings EnableZoom="True" ScrollMode="Both"/>--%>
<Appearance>
<FillStyle MainColor="249, 250, 251">
</FillStyle>
<Border Color="160, 170, 182" />
</Appearance>
<Legend>
<Appearance Dimensions-Margins="1%, 1%, 1px, 1px"
Dimensions-Paddings="1px, 1px, 1px, 1px"
Position-AlignedPosition="Top">
<ItemTextAppearance TextProperties-Color="102, 102, 102">
</ItemTextAppearance>
<FillStyle MainColor="216, 222, 227">
</FillStyle>
<Border Color="160, 170, 182" />
</Appearance>
</Legend>
<PlotArea>
<YAxis AutoScale="True" AxisMode="Extended">
<Appearance>
<MajorGridLines Color="227, 227, 227" />
<MinorGridLines Color="227, 227, 227" />
<TextAppearance AutoTextWrap="False"/>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="TopLeft">
</Appearance>
</TextBlock>
</AxisLabel>
</YAxis>
<XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0">
<Appearance>
<MajorGridLines Color="227, 227, 227" Width="0" />
<TextAppearance AutoTextWrap="True" />
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="BottomRight">
</Appearance>
</TextBlock>
</AxisLabel>
</XAxis>
<Appearance>
<FillStyle FillType="Solid" MainColor="">
</FillStyle>
</Appearance>
</PlotArea>
<ChartTitle>
<Appearance>
<FillStyle MainColor = "">
</FillStyle>
</Appearance>
<TextBlock Text="Capacity Delay" >
<Appearance TextProperties-Color="102, 102, 102"
TextProperties-Font="Arial, 7pt" Position-AlignedPosition="Bottom">
</Appearance>
</TextBlock>
</ChartTitle>
</telerik:RadChart>
We are unsure what kind of solution design you are looking for but RadChart does not provide additional API for zooming / scrolling besides using ClientSettings.ScrollMode / EnableZoom.
Kind regards,
Giuseppe
the Telerik team
Got answer http://www.telerik.com/community/forums/aspnet-ajax/chart/radchart-not-able-to-find-out-plot-area-zoom-in-option.aspx