Print Page | Close Window

[QUESTION] Legend colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17947
Printed Date: 26 November 2024 at 9:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [QUESTION] Legend colors
Posted By: Aaron
Subject: [QUESTION] Legend colors
Date 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....



Replies:
Posted By: Oleg
Date 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


Posted By: Aaron
Date 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....


Posted By: Aaron
Date 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....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net