Jump to content
Software FX Community

pie chart colours


User (Legacy)
 Share

Recommended Posts

Hi,

we're using ChartFX C/S, and we happen to have a chart containing 17

items. Now it seems that CFX has a pallette of only 16 when it comes to

shading the pie slices. When it gets to the 17th, it starts from the

beginning.

Its a bit disconcerting to see the the first and last pie slice actually

look the same piece of pie. Is there any way to increase the number of

colors shown by the pie chart?

Thanks,

Steve.

Link to comment
Share on other sites

Yes. You can set the any amount of colors you want. We just happen to have 

16 in our palette (we can only chose so many).

To set a different set of colors you need to do:

chart.OpenDataEx COD_COLOR,17,0

chart.Color(0) = <Color For First Slice>

chart.Color(1) = <Color For Second Slice>

...

chart.Color(16) = <Color For 17th Slice>

chart.CloseData COD_COLORS

--

FP

Software FX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...