Jump to content
Software FX Community

Multie series pie chart


User (Legacy)

Recommended Posts

Hi,

I have just bought your library and I am trying to do a multple series pie

chart (see attached).

What I want to do is:

1. All pies have the same size

2. Give names for each series

3. Position each serie label above each pie

4. I want to display values rather than percenage (already done that with

%mask)

5. See exact label (the first pie red label displays 6000, but the actual

value is 16000).

I am including the html generated code.

Thanks,

Alex Savescu

<chartfx:Chart id="chartProjects" runat="server" Gallery="Pie"

Height="450px" BackColor="ControlLight" NValues="3" BorderColor="#A8A8A8"

NSeries="3" MainClient="True" Width="960px" PointLabels="True"

MultipleColors="True" Volume="100" SerLegBox="True">

<Titles>

<chartfx:TitleDockable></chartfx:TitleDockable>

</Titles>

<Series>

<chartfx:SeriesAttributes PointLabelColor="Black"

PointLabelAlign="Bottom"></chartfx:SeriesAttributes>

<chartfx:SeriesAttributes

PointLabelColor="Black"></chartfx:SeriesAttributes>

<chartfx:SeriesAttributes

PointLabelColor="Black"></chartfx:SeriesAttributes>

</Series>

<SerLegBoxObj Docked="Top" Alignment="Spread"></SerLegBoxObj>

<AxisX Font="Arial, 14pt, style=Bold"></AxisX>

<Extensions>

<SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie

MinPercentage="75"

Shadows="True"></SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie>

</Extensions>

</chartfx:Chart>

Link to comment
Share on other sites

> 1. All pies have the same size

A default chart will display all pies the same size. Either a piece of code

that is not in the posting or something I can't see is causing the central

pie to be bigger.

Get rid of the following section:

<Series>

<chartfx:SeriesAttributes PointLabelColor="Black"

PointLabelAlign="Bottom"></chartfx:SeriesAttributes>

<chartfx:SeriesAttributes

PointLabelColor="Black"></chartfx:SeriesAttributes>

<chartfx:SeriesAttributes

PointLabelColor="Black"></chartfx:SeriesAttributes>

</Series>

Instead, set the PointLabelColor globally to the chart.

> 2. Give names for each series

> 3. Position each series label above each pie

If you assign a Series legend, you will get these titles to display.

> 5. See exact label (the first pie red label displays 6000, but the actual

> value is 16000).

Change the number of decimals to display more precise information, for

example:

chart.AxisY.LabelsFormat.Decimals = 2;

This can also be done at design time.

--

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...