-
Hi Simon, Legend can be used as a standalone control (this is new to 2010.1 release). You can place it wherever you want, including popup window. The following line shows how you can instantiate a legend on the page and bind its "legendItems" property to the "LegendItemCollection" of an existing chart. < ch : Legend Name = "StandAloneLegend" LegendItems = "{Binding LegendItemCollection, ElementName=MyChart}" /> Of course, the legend control allows all...
-
This seems to be a bug. I have noted it down and we will fix it in a future release. In the meantime, you can specify the ChartKind for each series and this will populate the color of the legend items properly. For example: <Chart:Chart x:Name=" MyChart1a " XValue=" Month " Width=" 400 " Height=" 300 " LegendVisible=" True "> <Chart:Chart.DataSeries> <Chart:Series Id=" Series1 " YValue=" Value " ChartKind="...
-
The property Series.Label is the legend item text for a legend items related to a series. If this property is not set, Series.Id will be used. For Pie/Doughnut type of charts, legend items are related to data points. Again, DataPoint.Label will be used if it is set, otherwise DataPoint.X coordinate will be used. DataPoint.Label can be set in code behind, once the data structure is created, i.e. after Chart.DataSource is set. The other way is to assign it from data source. Yo can select the input...
-
If you are using the Wizard, click Other, then click the ... button next to Font...then select the font you want. If you are setting this in code behind: Chart1.Legend.Visible = true ; Chart1.Legend.Font = new System.Drawing.Font(" Arial ", 16); Hope this helps. Cheers,