Jump to content
Software FX Community

Legend for Series


User (Legacy)

Recommended Posts

I can't get a Legend working for the series.  Here's the code I've been

trying this gives me an error....

'Add the nValues and nLegend arrays to the data provider

CfxArray.AddArray nValues1

CfxArray.AddArray nValues

CfxArray.AddArray nLegend

'Let Chart FX take the information from the data provider

Chart1.Axis(Axis_Y).Decimals = 0

Chart1.Axis(Axis_Y).Format = AF_CURRENCY

Chart1.SerLegBox = TRUE

Chart1.DataType(0) = CDT_VALUE

Chart1.DataType(1) = CDT_VALUE

Chart1.DataType(2) = CDT_KEYLEGEND

Chart1.Series(0).Legend = "Actual"

Chart1.Series(1).Legend = "Projected"

Link to comment
Share on other sites

What do you want to appear in the series legend box ? In the datatype you

are specifying that labels should be used as KEY legends, these are normally

used when you want abbreviations in the axes and full strings in the legend

box.

Can you post the chart you get, the chart you need and a sample of your

arrays ?

--

Regards,

JC

Software FX Support

"Frank Kopankiewitz" <frank@isedge.com> wrote in message

news:OXG5bbx6CHA.1996@webserver1.softwarefx.com...

> I can't get a Legend working for the series. Here's the code I've been

> trying this gives me an error....

>

> 'Add the nValues and nLegend arrays to the data provider

> CfxArray.AddArray nValues1

> CfxArray.AddArray nValues

> CfxArray.AddArray nLegend

>

> 'Let Chart FX take the information from the data provider

> Chart1.Axis(Axis_Y).Decimals = 0

> Chart1.Axis(Axis_Y).Format = AF_CURRENCY

>

> Chart1.SerLegBox = TRUE

> Chart1.DataType(0) = CDT_VALUE

> Chart1.DataType(1) = CDT_VALUE

> Chart1.DataType(2) = CDT_KEYLEGEND

> Chart1.Series(0).Legend = "Actual"

> Chart1.Series(1).Legend = "Projected"

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...