Jump to content
Software FX Community

Pie chart with two series - can't display 1st series labels


User (Legacy)

Recommended Posts

Hi,

Am attempting to draw two charts by having two sets of data (series). This

works fine and I get the two PIE charts with the correct values. However,

the label, legend shown for both PIE charts is the last series entered.

For example, I have tried setting the label by:

Chart1.ValueEx(TheSeries,YValue) = int(AnswerVal)

'response.write(" Answer: " & Answer)

'Chart1.Series(0).Legend = Answer

'Chart1.KeyLeg(0) = "Test 1"

'Chart1.KeyLeg(1) = "Test 2"

'Chart1.KeyLeg(2) = "Test 3"

chart1.Legend(YValue) = Answer

Chart1.Axis(AXIS_X).Label(TheSeries) = (TheSeries) & "

Value: " & YValue

What the last line gives me on both PIE charts is series 1 (zero based) and

YValue instead of seeing series 0 and YValue on the first PIE chart, and the

series 1 and YValue on the second chart.

Any help would be appreciated.

Regards,

James Barker

Link to comment
Share on other sites

Where do you want this label ?

chart.Legend(<index>) = <value>

is equivalent to:

chart.Axis(AXIS_X).Label(<index>) = value

In a PIE chart, X-Axis labels are used to label each slice REGARDLESS of the

series in which they are, in other words if you have two series (2 pies) the

string label for slice <i> in BOTH pies will be the SAME.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Thanks for the reply,

The question is, is there any way of displaying different labels for each

series on the individual PIE charts?

Regards,

James

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

news:yntA5GavDHA.3512@WEBSERVER1...

> Where do you want this label ?

>

> chart.Legend(<index>) = <value>

>

> is equivalent to:

>

> chart.Axis(AXIS_X).Label(<index>) = value

>

> In a PIE chart, X-Axis labels are used to label each slice REGARDLESS of

the

> series in which they are, in other words if you have two series (2 pies)

the

> string label for slice <i> in BOTH pies will be the SAME.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

There is no way in Chart FX 5.x to display a different STRING label on each

slice of each Pie. For example, the String label for the for the first slice

of the first pie will be the SAME as the string label of the first slice of

the second pie. Only the value portion of it (numeric) can be different.

A new feature in Chart FX 6 (for .NET) has been added to allow for string

labels to be attached to individual points (Tag property).

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...