Hi Telerik Support,
I have a RadChartHtml, in code behind, I add series to radChartHtml, This is code I define char on Source
Plz help me :(
Thanks before !
I have a RadChartHtml, in code behind, I add series to radChartHtml, This is code I define char on Source
<telerik:RadHtmlChart ID="rhcChart" runat="server" Transitions="true" Skin="Forest" Width="1250px" Height="600px"> <PlotArea> <XAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickType="Outside" MaxValue="12" MinValue="1" MajorTickSize="1" MinorTickType="Outside" Reversed="False" Step="1"> <TitleAppearance Text="Months of Year"> </TitleAppearance> </XAxis> <YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside" MaxValue="9000000" MinorTickSize="1" MinorTickType="Outside" MinValue="0" Reversed="false" Step="1000000"> <TitleAppearance Position="Center" RotationAngle="0" Text="Dollars"> </TitleAppearance> <LabelsAppearance DataFormatString="{0}$" RotationAngle="0"> </LabelsAppearance> </YAxis> </PlotArea> <Legend> <Appearance Visible="True" Position="Bottom"> </Appearance> </Legend></telerik:RadHtmlChart>
In code Behind
void BuildChart(string BICode, string RevName)
{
var data = Pnl.GetPnLDataByMonthAndYearAndBICode("2012", "1,2,3,4,5,6,7,8,9,10,11,12", BICode);
ScatterLineSeries series1 = new ScatterLineSeries();
series1.Name = RevName;
series1.LabelsAppearance.Visible = false;
series1.TooltipsAppearance.BackgroundColor = Color.White;
series1.TooltipsAppearance.DataFormatString = "{1} $,";
for (int i = 0; i <= data.Count - 1; i++)
{
SeriesItem seriesItem = new SeriesItem(data[i].month, data[i].AMOUNT);
series1.Items.Add(seriesItem);
}
rhcChart.PlotArea.Series.Add(series1);
}
This is my code remove series, when click to Remove
rhcChart.PlotArea.Series.RemoveAt(2);
Plz help me :(
Thanks before !