Jump to content
Software FX Community

Legend Box toolbar button


User (Legacy)

Recommended Posts

Hi

The Legend Box toolbar button is disabled for bar graphs but available for

pie charts. However if it is pressed whilst in pie chart mode then I switch

the graph to be a bar chart, the legend box appears. Is this a bug and is

there a workaround so the button is enabled whilst viewing a bar chart?

Chris Bell

--

Fancy a pint?

Visit the Random Pub Finder

http://www.randompubfinder.com

Link to comment
Share on other sites

This is because you don't have a series legend, only a Values legend. This 

toolbar button turn on/off the appropriate legend box based on the current

chart type.

This is by design.

Normally the values legend is not useful in a bar chart unless you have set

MultipleColors = true and your chart has only one series (which doesn't seem

to be the case as in this case the toolbar button will behave differently).

Can you please attach a screenshot of both the Bar and Pie charts and

explain why do you want to see the values legend in a bar chart ?

Notice the this toolbar button can easily be replaced with another command

that will turn on the values legend regardless of the chart type. Here is

how:

chart1.ToolBarObj[17] = (int) CommandID.Legend;

Note: 17 corresponds to the default position of the LegendBox button in the

toolbar. If you have customized the toolbar, this number may be different.

--

FP

Software FX

Link to comment
Share on other sites

Thanks

chart1.ToolBarObj[17] = (int) CommandID.Legend;

did the trick. The reason I want a value legend is because I don't have a

huge amount of space and my value names can be pretty long so I prefer to

have a number along the x-axis and a legend.

One thing that follows on from this is that the legend is placed seemingly

at random. Sometimes the legend has a lot of space to its right, other times

the text is cut off because it is too far to the right and sometimes it's

just right. Any ideas?

Chris Bell

--

Fancy a pint?

Visit the Random Pub Finder

http://www.randompubfinder.com

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:K8sm5bl2EHA.1116@webserver3.softwarefx.com...

> This is because you don't have a series legend, only a Values legend. This

> toolbar button turn on/off the appropriate legend box based on the current

> chart type.

>

> This is by design.

>

> Normally the values legend is not useful in a bar chart unless you have

set

> MultipleColors = true and your chart has only one series (which doesn't

seem

> to be the case as in this case the toolbar button will behave

differently).

> Can you please attach a screenshot of both the Bar and Pie charts and

> explain why do you want to see the values legend in a bar chart ?

>

> Notice the this toolbar button can easily be replaced with another command

> that will turn on the values legend regardless of the chart type. Here is

> how:

>

> chart1.ToolBarObj[17] = (int) CommandID.Legend;

>

> Note: 17 corresponds to the default position of the LegendBox button in

the

> toolbar. If you have customized the toolbar, this number may be different.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Indeed, see the three attachments. OK.jpg is as I'd expect it, not OK.jpg

and not OK2.jpg show the legend strangely positioned.

Chris Bell

--

Fancy a pint?

Visit the Random Pub Finder

http://www.randompubfinder.com

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:cPR5xK62EHA.1120@webserver3.softwarefx.com...

> Can you please attach some screenshots. I don't understand which space you

> are referring to.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...