This is a migrated thread and some comments may be shown as answers.

Questions for charting programatically

5 Answers 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gian Carlo Zamboni
Top achievements
Rank 1
Gian Carlo Zamboni asked on 12 May 2008, 04:07 PM
Hi, I'm creating some reports with Pie charts.
I need to know, how I change the Chart title. The property name for class Chart doesn't change the char title, and ChartTitle is read only.
The other question is how I show the name of the series and the percent.

Best Regards,
Sebastián Reale

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 May 2008, 03:36 PM
Hi Gian Carlo Zamboni,

You can change the chart title like this in the report class:

this.chart1.ChartTitle.TextBlock.Text = "Yaba Daba Doo";

As for your second question, please take a look at this help article.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gian Carlo Zamboni
Top achievements
Rank 1
answered on 22 May 2008, 09:13 PM
Thanks I noticed my problem, I was using an old version of the help file that is posted in the Documentation of Reporting.

Now I'm having other problems no listed in the documentacion (the last version).

http://download.colabra.cl/otros/Report_Images/1.jpg
http://download.colabra.cl/otros/Report_Images/2.jpg
http://download.colabra.cl/otros/Report_Images/3.jpg

Image 1: 
  • I set the margins to 0, but the Title it stills displaying with margin left.
  • How I prevent the title to be cut when is too long?

Image 2:

  • The series name is being cut too

Image 3:

  • The series name overlaps one to another, how I prevent this?
  • When the Legend has series names too long, appears over the chart.

Thanks
Sebastián Reale A.

0
Steve
Telerik team
answered on 26 May 2008, 01:18 PM
Hi Gian Carlo,

Thank you for getting back to us and up to your questions:
  1. Please set RadChart.ChartTitle.Appearance.Position.Auto = false; and after that set RadChart.ChartTitle.Appearance.Position.X and Y to 1, otherwise with 0 your chart border will be clipped.
  2. RadChart1.Series.Appearance.TextAppearance.Length is the property that specifies how many characters are shown before clipping the content.
  3. AutoLayout and AutoTextWrap properties are exposed for such cases. Please play around with them and see if they make a difference. As for the second problem - IntelligentLabelsEnabled=true should be set. However we just noticed that it is not working for some reason and would fix it for the subsequent release of the controls.
Hope these help.

Regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gian Carlo Zamboni
Top achievements
Rank 1
answered on 30 May 2008, 01:53 PM
Hi, thanks for the help, I'll describe the results:

1. The ChartTitle is ok now.
2. I can't find "RadChart1.Series.Appearance.TextAppearance.Length" to set the length
3. The IntelligentLabelsEnabled fix the problem but I can't find "AutoLayout" and "AutoTextWrap".

Best Regards,
Sebastian Reale
0
Steve
Telerik team
answered on 02 Jun 2008, 01:22 PM
Hi Gian Carlo,

I am glad that my suggestions have helped. I've misspelled the property in #2 - it should be TextAppearance.MaxLength - sorry for this. The AutoTextWrap property is also available in chart2.Series.Appearance.TextAppearance.AutoTextWrap, but AutoLayout is not available as it is not yet exposed for the reporting chart wrapper - we will do this for the next version.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Gian Carlo Zamboni
Top achievements
Rank 1
Answers by
Steve
Telerik team
Gian Carlo Zamboni
Top achievements
Rank 1
Share this question
or