Legend name problems

Stimulsoft Reports.NET discussion
Post Reply
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Legend name problems

Post by unison »

Good day,

I have been experiencing some problems with dynamically naming my series names, and how they show up in the legend.

I have attached a visual studio 2008 solution that demonstrates my problem.

For the series chart, I can specify the series in the dataset supplied to the graph. The legend displays the correct names, however there are huge amounts of whitespace between some of the legend names. This not only looks wrong, but on some graphs that are shorter, the legend displays right off the chart.

For the pie chart, we have a totally different problem. I setup the series name as for the line chart. However the series name never displays in the legend.

Hope you can resolve some of the issues.

Regards
David

Attachments
315.Stimulsoft Reporter Problems.zip
(53.15 KiB) Downloaded 236 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Legend name problems

Post by Edward »

Hi David,
unison wrote:however there are huge amounts of whitespace between some of the legend names. This not only looks wrong, but on some graphs that are shorter, the legend displays right off the chart.
For this types of charts, please set Chart.Legend.VerticalAlignment = 'TopOutside' value in the Properties Editor.
White space occurred because for each legend item reserved the same space for each legend column. Amount of columns you can set with help of Legend.'Column' property in the Property Editor in the Chart.
For the pie chart, we have a totally different problem. I setup the series name as for the line chart. However the series name never displays in the legend.
Please set Series Label.LegendValueType = 'Series Title' in the Properties Editor for the entire Pie Chart.

Thank you.
Attachments
316.Report.mrt
(20.61 KiB) Downloaded 384 times
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Legend name problems

Post by unison »

Hi Edward,

Thanks for your reply. I still have some issues though.

Using your suggestion for the pie chart, the series name now correctly displays in the legend. However, we are back to the same problem as before, with large amounts of whitespace between the legend names.

Both charts (line and pie) have their Chart.Legend.VerticalAlignment property set to "TopOutside". If I change the the column layout to 2, then it seems to display ok, but the legend is displayed on 2 lines. However I need the legend to display on a single line - hence the Column property being set to 1.

Is there no way to trim the whitespace between the legend names? This will fix the problem I am sure.

Regards
David
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Legend name problems

Post by Edward »

Hi David,

Thank you for explanation, everything is clear.

We will let you know our results soon.

Thank you.
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Legend name problems

Post by unison »

Hi Edward,

Any update on this problem?

Regards,
David
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Legend name problems

Post by Edward »

Hi David,

The problem is in our to-do list, we will let you know when the update is available.

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Legend name problems

Post by Andrew »

Hello,

The error with placing chart legend items is fixed. The patch will be available on 8-February-2010.

Thank you.
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Legend name problems

Post by unison »

Thanks Andrew.
Post Reply