Hi,
I have a dashboard with 3 RadCartesianCharts (2 bar charts, 1 line chart) all based on date values for category bindings and numeric values for value bindings.
Both the date values and the value values can vary considerably depending on filters set, so I set up value converters to dynamically adjust the axis labels and tooltips accordingly.
I was successful with all the horizontal axis and tooltips, but not with the y-axis values.
My goal is to adjust the y-axis values based on the size of the values, i.e. thousands vs millions vs billions. I use the following code to properly format the tooltips:
double measureValue = double.Parse(value.ToString());
if (measureValue > 999999999 || measureValue < -999999999)
{
formatString = "0,,,.###B";
}
else if (measureValue > 999999 || measureValue < -999999)
{
formatString = "0,,.##M";
}