Jump to content
Software FX Community

Legend - repeat of colours?

User (Legacy)

Recommended Posts

For some reason, the colours in the legend of my graph repeat. I can't seem

to find a reason in the code for this:

' These labels will appear in the tooltip

for YCounter = 1 to benefit.rows

benefit.row = YCounter

If benefit.Value("BN-BEN-USED") = "0.00" then


Chart.Legend(YCounter-1) = benefit.Value("BN-DESC")

End If


Link to comment
Share on other sites

But you are not setting your labels consecutively, how many points do you

actually have in this chart. I see only 3 Pie slices but I see many more

labels, most of them empty.

Maybe you want to keep another index counter in your loop so that only when

the data point is used you increment it.



Software FX, Inc.

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.

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.


  • Create New...