I have found the font property for the chart, primaryX and primaryY axes. I cannot find one for the legend! Is there one and where do I set it? If not, how can I make my legend have the same font as the rest of my chart at runtime?
Also, I want the title of my chart to be large and bold without affecting the rest of the text (primary axes and legend). How can I do this?
Please refer to the sample linked to below for an example of changing the Legend Font and the Chart Title Font:
private void Form1_Load(object sender, System.EventArgs e)
this.chartControl1.Legend.FilterItems += new LegendFilterItemsEventHandler(this.FilterLegend);
this.chartControl1.Font = new Font("Times New Roman" , 24.0f);
protected void FilterLegend(object sender, ChartLegendFilterItemsEventArgs args)
int legendCount = args.Items.Length;
for(int i =0; i
AdministratorNovember 30, 2004 11:28 AM UTC
Thanks Davis, that works for me.
Now, how can I do the same for the labels on the primary X and Y axes? How about the labels for each point in the series?