Chart Legends


Author
Message
Steve Marshall
Steve Marshall
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 32, Visits: 50
Hi,

I have what I thought was a simple task, but it appears to be impossible! I am currently tasked with replacing all of the graphs in our company dashboard and am currently evaluating your Chart product. I have completed about 75% of the rework without too much in the way of issue. However, I have now got to generate a replacement for a chart that shows the status of Works Orders flowing through our systems, and the current implementation does this with a Pie Chart and a multi-column legend (showing colour from the Pie Chart, a Count, and a Percentage). The first element was quickly and easily replicated with a Torus Pie Chart which looks effective, but the latter is causing a bit of a headache.

Based on all the posts, examples, and documentation there seems to be very little control over the content and formatting of the Legend, providing only the "<value>" and "<label>" elements. This indcates immediately that I cannot replicate the three elements of the current legend .... and the Format seems very limited in that I cannot seem to even get the two allowed elements to line up in a columnar fashion. I have even asked the question about a slight change to ease the problem, and it was stated that the content of this chart has been stated as "non-variable" and MUST contain the data it does now - so no option for change!

My question (finally) is .... am I missing something (highly possible as the object model is quite extensive and I have only been working with it for a couple of days), or am I going to have to generate my own "legend" and place it on another child panel?? If the latter, how do I access the Pie Segment colours and label associations so that I can replicate these accurately in my generated legend ??

Or, is it just the case that what I need to do cannot be done .....

Thanks,
Steve

Tags
Replies
Steve Marshall
Steve Marshall
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 32, Visits: 50
Hi,

Just a quick note to let you know that I have found ways to address theae two issues.

The colours problem I have solved by extending my data tables and queries to return RGB values along with the data and then my code uses these to create a Color object which is used to set the FillStyle for the segment and legend row.

The borders issue I just used a trick. Each chart was placed in a standard WinForms Panel, located at -1,-1 and sized at the panel dimensions + 2 in both height and width. As such, the border becomes invisible as it is outside the display area of the panel.

For this last one, please let me know if there is a way to directly hide the border of the control and I will remove this trick. For the time being though, I have met the requirements of my users this way.

Thanks,
Steve

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Steve,

To hide the border around the control you can use:
nChartControl1.BackgroundStyle.FrameStyle.Visible = false;

Let us know if you meet any problems or have any questions.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search