buy now
log in
MindFusion

Q: I want to show strings at the axis in a bar chart. I use a property to set the labels but nothing shows. Here is my code:

 barChart1.DataSource = records;
 barChart1.XLabelPath = "Profit2012";
 

A: When you want to show custom labels at an axis you must also set the label type of the axis to “CustomText”. Charting for Wpf supports several label types at the axes and most likely the label type of the X-axis in your chart is set to Empty if you don’t see anything. You must add:

 barChart1.XAxisSettings.LabelType = LabelType.CustomText;



Copyright © 2001-2024 MindFusion LLC. All rights reserved.
Terms of Use - Contact Us