daviddam Posted July 8, 2008 Report Share Posted July 8, 2008 I've seen the ToolTipConverter used to display custom information for point labels and I was wondering what tokens are available for it? Also, is there a way through C# code (not XAML) to specify a custom label for the points in a series? Thanks! Quote Link to comment Share on other sites More sharing options...
JuanC Posted July 8, 2008 Report Share Posted July 8, 2008 You can change (in both code or XAML) the label for a particular point or series by using the following code chart1.AllSeries.PointLabels.Format = "Value %v"; chart1.AllSeries.PointLabels.Visibility = Visibility.Visible;Note that most of the tokens you can use are described here and these are the same tokens you can use when using the ToolTipConverter. The ToolTipConverter approach is useful if you want to change the template for your labels (e.g. if you want to display an image on each point label) but you want to use our formatting settings, e.g. %v will honor the AxisY.DataFormat settings related to format (Currency, etc.) number of decimals and other settings. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
daviddam Posted July 9, 2008 Author Report Share Posted July 9, 2008 Once again, thank you JuanC!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.