ViewXY formatting axis

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

ViewXY formatting axis

Post by greggorob64 » Thu May 14, 2015 5:11 pm

I need to be able to have my xAxis configurable to:

-Auto
-Scientific Always
-Decimal Always (configurable decimal places)

Im running into an issue, when I use "D" for a format specifier, the chart crashes.
When I use "00.00" (supposed to be two before and two after the decimal) it seems ignored. Am I missing something?

Thanks.

Code: Select all

         xAxis.ValueType = AxisValueType.Number;
         xAxis.AutoFormatLabels = false;
         xAxis.LabelsNumberFormat = "00000.0000";
Produces:
Image

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: ViewXY formatting axis

Post by greggorob64 » Thu May 14, 2015 5:13 pm

Scratch that, I found the mistake.

If you subscribe to the FormatValueLabel event, the format settings don't do anything. I'll leave this up for posterity, or you can just delete this.

Post Reply