Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF Graph Label format for Double values

Solved!
Go to solution

Hi @ll

 

I use wpf graph with autoscale functionality.

 

on my X-Axis I show double values which will be dispalayed as e. g. 869.52 ...889.53...869.64 etc.

 

when this values have more then 3 digits behind the point the scale shows sometimes:  8.69E2 etc (instead 869.564)...how can I avoid that ?

 

BR

KebMo

 

0 Kudos
Message 1 of 3
(2,942 Views)
Solution
Accepted by KebMo

You can control the format of the division labels through the LabelPresenter property on the MajorDivisions of the axis. For example, the presenter can accept any of the Standard Numeric Format Strings:

 

<ni:AxisDouble Orientation="Horizontal">
    <ni:AxisDouble.MajorDivisions>
        <ni:RangeLabeledDivisions LabelPresenter="G" />
    </ni:AxisDouble.MajorDivisions>
</ni:AxisDouble>
~ Paul H
Message 2 of 3
(2,922 Views)

Hi Paul,

 

perfekt..it works ,,,,Thanks for your help

 

BR

KebMo

 

 

0 Kudos
Message 3 of 3
(2,910 Views)