Hi,,,
I am using Telerik Q1 2015, i just want to export chart view into image but legend not showing event I set show legend is true.
please help me, bellow is my code
private RadChartView radChartView1;<
br
><
br
> public Form1()<
br
> {<
br
> InitializeComponent();<
br
><
br
> this.radChartView1 = new RadChartView();<
br
> LoadData();<
br
><
br
> this.radChartView1.ShowLegend = true;<
br
> this.radChartView1.ChartElement.LegendElement.LegendTitle = "Expenses";<
br
> this.radChartView1.ShowTitle = true;<
br
> this.radChartView1.Title = "Personal monthly expenses";<
br
> <
br
><
br
> //this.Controls.Add(this.radChartView1);<
br
> }<
br
><
br
> private void radButton1_Click(object sender, EventArgs e)<
br
> {<
br
> Application.DoEvents();<
br
> this.radChartView1.ExportToImage(@"C:\Users\syahr\Documents\Visual Studio 2010\Projects\TesTelerik\OutputTes\sopp.png", new Size(1871, 1086), ImageFormat.Png);<
br
> <
br
> RadMessageBox.Show("ok"); <
br
> }<
br
><
br
> private void LoadData()<
br
> {<
br
> LineSeries lineSeries;<
br
> LineSeriesDataModel model = new LineSeriesDataModel();<
br
><
br
> for (int i = 0; i <
11
; i++)<br> {<
br
> lineSeries = new LineSeries();<
br
> lineSeries.CategoryMember = "Month";<
br
> lineSeries.ValueMember = "Expense";<
br
> lineSeries.LegendTitle = model.GetLegendText(i);<
br
> lineSeries.DataSource = model.GetData(i);<
br
> lineSeries.PointSize = new SizeF(3f, 3f);<
br
> lineSeries.BorderColor = Color.Blue;<
br
> lineSeries.IsVisibleInLegend = true;<
br
><
br
> this.radChartView1.Series.Add(lineSeries);<
br
> Application.DoEvents();<
br
> }<
br
> }