Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
How to change the content of an axis label
posted

Can I change not only format of an axis label, but also the content according to some converting rule for Values?

E.g. I would like to display positive value labels for all negative ones.

/Efim

Parents
No Data
Reply
  • 28496
    Offline posted

    there is no way to format the label using custom logic in code, but you can use the .NET string formatting to achieve positive labels for negative values.

    <igChart:XamChart.Axes>
                    <igChart:Axis AxisType="PrimaryY">
                        <igChart:Axis.Label>
                            <igChart:Label Format="{}{0:0;0}" />
                        </igChart:Axis.Label>
                    </igChart:Axis>
                </igChart:XamChart.Axes>

Children
No Data