LinearAxis - Unit Rounding

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

user421 wrote at 2014-03-12 11:09:

Original post:
https://oxyplot.codeplex.com/workitem/10156

How do I round unit on axis?
Example:

I have set.
Axis.FormatAsFractions = true;
Axis.FractionUnit = Math.PI;
Axis.FractionUnitSymbol = "π";

I do not 1,2755645656231456π but something like 1,276π.

Thanks for the answer

Setting StringFormat only works when Axis.FormatAsFractions is set to false.

objo wrote at 2014-03-12 12:51:

This should now be fixed. A unit test that covers this case was also added.