Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - [QUESTION] Legend colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[QUESTION] Legend colors

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: [QUESTION] Legend colors
    Posted: 23 February 2011 at 2:39pm
Hi,
 
Sometimes I have a large number of points added to a serie and it doesn't look so great when having a legend that big. Of course I'm able to rearrange legend but if it contains a lot of items, the chart will be rendered in (a too) small area and (for example) the pie gets too small and you aren't able to figure out its content. To get around this I'm trying to implement a custom scrollable legend.
 
I have two controls which I can use for this: ReportControl and PropertyGridControl Wink The one on the left is PropertyGrid and on the right is ReportControl (See image below) Both controls need Markup to render the colors, these colors are already present in ChartControl class <Palette> 
 
Properties <Color> and <Color2> are used to create gradient square but if you look at the original legend, the square has a border which is darker. Question: How to get that color?
 
 
 
 
 
 
 
For now I just want to implement squares because Markup isn't still my best quality LOL but maybe I will add some of the CJ legend 'styles'
 
Thanks a lot in advance
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2011 at 1:16am
Hi,

Its calculated from Color - we convert to HSL, decrease Light and convert back to RGB.  Will add some tool method for it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2011 at 7:04am

Hi Oleg,

Thanks a lot Wink

I was fiddling around to get the different legend styles rendered with Markup. To my surprise it looks same way as you have already in Legend. Does that mean you use Markup to render Legend as well? If so, why can't we have a scrollbar in Legend... you could easely add ScrollViewer to it and have a property we could set if scrollbars are needed when the list gets to long and I wouldn't have to fiddle anymore LOL
 
Thanks a lot
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2011 at 12:28pm

Hi Oleg,

Additionally to method for calculating color it would be nice to have:

  • method FindPoint(InDex or as SeriesPoint)
  • In addition to previous request, Point should return Index
  • Color2 as property to assign custom color to point (now only one color can be assigned...) Maybe this isn't necessary depending on method calculating colors from one color... 
Thanks a lot in advance
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.