Jump to content
Software FX Community

Series legend box does not come up properly and legend box shapes are wrong


User (Legacy)

Recommended Posts

Hello!

I have 2 problems that I really need a rapid answer on.

Has anyone ever had a problem with the series box coming up too large when a

chart is displayed? That is one problem I have at the moment, I do not set

the height of the box, and yet it comes up really big, I can drag it out of

the chart and put it back in to get it to the proper size. Obviously this

is not very good, because the chart is being made smaller

Secondly, has anyone ever had the boxes of the series legend box come up in

different shapes like the picture attached?

I provide data to my chart using a VB Array, and set up the series legend

box manually using the code below

for nCount=0 to UBound(aPeriodNames)

if aLegends(nCount)<>-1 then

cfxChart1.SerLeg(aLegends(nCount))=aPeriodNames(nCount)

next

where aLegends is an array of numbers for the first point in the required

colour and aPeriodNames is an array of captions for the legend box

Cheers

Paul

Attachments.zip

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

For the issue with the marker shapes you will need to add the following line

of code.

ChartFX1.MarkerShape = CHART_TRIANGLEMK 'See API for possible differnet

shapes.

For the second issue with the legend box displaying the incorrect size. I

would suggest try switching the timming of when you enabled the legend. If

this does not help then please send us a small sample that demonstrates the

issue.

Justin Trask

Tech. Support

561-392-2023

"Paul Saxton" <paul.saxton@stcenergy.com> wrote in message

news:TtjCLsXKCHA.1280@webserver1.softwarefx.com...

> Hello!

>

> I have 2 problems that I really need a rapid answer on.

>

> Has anyone ever had a problem with the series box coming up too large when

a

> chart is displayed? That is one problem I have at the moment, I do not

set

> the height of the box, and yet it comes up really big, I can drag it out

of

> the chart and put it back in to get it to the proper size. Obviously this

> is not very good, because the chart is being made smaller

>

> Secondly, has anyone ever had the boxes of the series legend box come up

in

> different shapes like the picture attached?

>

> I provide data to my chart using a VB Array, and set up the series legend

> box manually using the code below

>

>

> for nCount=0 to UBound(aPeriodNames)

> if aLegends(nCount)<>-1 then

> cfxChart1.SerLeg(aLegends(nCount))=aPeriodNames(nCount)

> next

>

> where aLegends is an array of numbers for the first point in the required

> colour and aPeriodNames is an array of captions for the legend box

>

> Cheers

>

> Paul

>

>

>

>

>

>

Link to comment
Share on other sites

Hi Justin!

I have added the line ChartFX1.MarkerShape=MK_RECT to my code (the same code

as I emailed you directly) and it makes no difference.

As for the other one, it seems to have been resolved by installing the

latest service pack.

So its one bug down and 2 to go! The marker shapes and the explorer crash

when colouring points on a line chart combined with a bar chart

Cheers

Paul

"SFX Tech Support" <support@softwarefx.com> wrote in message

news:UPrkdlbMCHA.1280@webserver1.softwarefx.com...

> Hello,

>

> For the issue with the marker shapes you will need to add the following

line

> of code.

> ChartFX1.MarkerShape = CHART_TRIANGLEMK 'See API for possible differnet

> shapes.

>

> For the second issue with the legend box displaying the incorrect size. I

> would suggest try switching the timming of when you enabled the legend.

If

> this does not help then please send us a small sample that demonstrates

the

> issue.

>

> Justin Trask

> Tech. Support

> 561-392-2023

>

> "Paul Saxton" <paul.saxton@stcenergy.com> wrote in message

> news:TtjCLsXKCHA.1280@webserver1.softwarefx.com...

> > Hello!

> >

> > I have 2 problems that I really need a rapid answer on.

> >

> > Has anyone ever had a problem with the series box coming up too large

when

> a

> > chart is displayed? That is one problem I have at the moment, I do not

> set

> > the height of the box, and yet it comes up really big, I can drag it out

> of

> > the chart and put it back in to get it to the proper size. Obviously

this

> > is not very good, because the chart is being made smaller

> >

> > Secondly, has anyone ever had the boxes of the series legend box come up

> in

> > different shapes like the picture attached?

> >

> > I provide data to my chart using a VB Array, and set up the series

legend

> > box manually using the code below

> >

> >

> > for nCount=0 to UBound(aPeriodNames)

> > if aLegends(nCount)<>-1 then

> > cfxChart1.SerLeg(aLegends(nCount))=aPeriodNames(nCount)

> > next

> >

> > where aLegends is an array of numbers for the first point in the

required

> > colour and aPeriodNames is an array of captions for the legend box

> >

> > Cheers

> >

> > Paul

> >

> >

> >

> >

> >

> >

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...