or
void chart1_NeedDataSource(object sender, EventArgs e) { chart1.PlotArea.Appearance.Dimensions.Margins = "5%"; chart1.PlotArea.Appearance.Dimensions.Margins.Bottom.Type = Telerik.Reporting.Charting.Styles.UnitType.Percentage; chart1.PlotArea.Appearance.Dimensions.Margins.Bottom.Value = 15f; chart1.PlotArea.Appearance.Dimensions.Margins.Left.Type = Telerik.Reporting.Charting.Styles.UnitType.Percentage; chart1.PlotArea.Appearance.Dimensions.Margins.Left.Value = 15f; chart1.Legend.Visible = false; chart1.ChartTitle.Visible = false; chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45; chart1.PlotArea.XAxis.Clear(); chart1.PlotArea.XAxis.AutoScale = false; chart1.PlotArea.XAxis.AddRange(1, 5, 1); chart1.PlotArea.XAxis[0].TextBlock.Text = "Test"; chart1.PlotArea.XAxis[1].TextBlock.Text = "Test2"; chart1.PlotArea.XAxis[2].TextBlock.Text = "Test3"; chart1.PlotArea.XAxis[3].TextBlock.Text = "Test4"; chart1.PlotArea.XAxis[4].TextBlock.Text = "Test5"; chart1.Series.Add(new Telerik.Reporting.Charting.ChartSeries() { Name = "Test" }); double[] testData = { 5, 6, 7, 8, 9 }; foreach (double item in testData) { chart1.Series[0].AddItem(item); } }<telerik:ReportViewer ID="ReportViewer1" runat="server"
style="border:1px solid #ccc;" width="100%" height="100%"
OnClientResized="resizeViewer" ProgressText="Step 2: Preparing report..."
ZoomMode="Percent" ViewMode="PrintPreview"
ShowPrintPreviewButton="False" SkinsPath="Skins" Skin="Custom" Font-Size="9pt" />