Hi Yonatan,
The following code shows how to apply a value scale to axis labels:
NLinearScaleConfigurator linearScale = (NLinearScaleConfigurator)chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;
linearScale.LabelStyle.ValueScale = 0.0001;
Using this code labels that would normally show as 1000, 2000, will display as 1,2 etc.
Alternatively you can create a custom label value formatter:
class CustomValueFormatter : NValueFormatter
{
public override string FormatValue(double value)
{
return (value / 1000).ToString();
}
public override string FormatValue(object value)
{
return FormatValue((double)value);
}
}
// somewhere in code
NChart chart = nChartControl1.Charts[0];
NLinearScaleConfigurator linearScale = (NLinearScaleConfigurator)chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;
linearScale.LabelValueFormatter = new CustomValueFormatter();
Let us know if you meet any problems.
Best Regards,
Nevron Support Team