The exception is thrown before setting the range. Im using NumericAxis. But nevermind. I needed to use IComparable. However its strange that a double value is not accepted.
- Take a look at the RangeFactory methods in the API docs. Double is an IComparable so should work. The Range Factory requires the input VisibleRange to determine the type of range to produce. This must also be a DoubleRange. hope you get it working as expected
- Also, you can achieve the same thing with myYAxis.VisibleRange = new DoubleRange(2.22, 2.23); The RangeFactory is only really needed when making axis agnostic ranges (e.g. a ChartModifier which must work on any axis type). Hope this helps,
- You must login to post comments
Please login first to submit.