User (Legacy) Posted February 2, 2004 Report Share Posted February 2, 2004 When printing charts to a b/w printer its impossible to work out what legend item corresponds with what series in a standard line chart. Pie charts allow you to very simply attach a PointLabel which gives a caption for each pie segment. If I try and attach the same to a line chart (ie myChart.series(0).PointLabels = true) every data point is labelled. How can I attach a single label for each series in my chart? Thanks, Stephen Link to comment Share on other sites More sharing options...
Software FX Posted February 3, 2004 Report Share Posted February 3, 2004 Labeling the series in the chart itself is not supported. You could label the Last point of each series and use the PointLabelMask property to display the series legend there. This, however, possess a lot of problems with overlapping and label positioning. So depending on your data this code may work for you: chart1.PointLabelMask = "%s"; chart1.PointLabelAlign = LabelAlign.Left | LabelAlign.VCenter; chart1.Point[chart1.NValues-1].PointLabels = true; -- FP Software FX Link to comment Share on other sites More sharing options...
Software FX Posted February 3, 2004 Report Share Posted February 3, 2004 Also note that using different line styles and/or widths could help differentiate series in a b/w printout. -- Regards, JC Software FX Support "Stephen Miller" <chartfx@3la.com.au> wrote in message news:KfK4Xqg6DHA.2468@webserver3.softwarefx.com... > When printing charts to a b/w printer its impossible to work out what legend > item corresponds with what series in a standard line chart. Pie charts allow > you to very simply attach a PointLabel which gives a caption for each pie > segment. If I try and attach the same to a line chart (ie > myChart.series(0).PointLabels = true) every data point is labelled. How can > I attach a single label for each series in my chart? > > Thanks, > > Stephen > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.