Print Page | Close Window

Legends

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=19536
Printed Date: 30 January 2025 at 9:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Legends
Posted By: prounds
Subject: Legends
Date Posted: 29 February 2012 at 7:44pm
I can't get a Legend to appear in a chart I'm creating using the ChartFastLineStyle style.
 
Code is: (C#, .NET4)
 
for ( int i = 0; i < ItemsCount; i++)
{
string series = "Series " + i.ToString();
XtremeChartControl.ChartSeries dataSeries = axCC_Presentation.Content.Series.Add(series);
...   Load some Data into the series...
dataSeries.LegendText = "Legend Text " + i.toString();
// Set a color for each series

XtremeChartControl.ChartFastLineSeriesStyle LineStyle = new XtremeCharControl.ChartFastLIneSeriesStyle();

LineStyle.color = (uint) Colors(i)  // Colors is an array of colors I made, which work
}
 
for  (int i = 0; i < ItemsCount; i++)
{
XtremeCHartControl.ChartDiagram2D Diagram = (XtremeChartControDiagram2d) axCC_Presentation.Content.Series.Diagram;
axCC_Presentation.Content.Legend.Visible = true;
 .. Play around with each diagram, setting the same range for each..
 
}
 
 
 



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