Reputation: 1391
I have a exponential curve shown as a green line, displayed on a log (Y) - linear (X) axis like this:
I try to change the axis plot style from log-linear to linear-linear like this:
var tmpCalibrationChartXAxis = new LinearAxis();
var tmpCalibrationChartYAxis = new LinearAxis();
tmpCalibrationChartXAxis.Range = new DoubleRange(this.minX * 0.9, this.maxX * 1.1);
tmpCalibrationChartYAxis.Range = new DoubleRange(this.minY * 0.9, this.maxY * 1.1);
this.CalibrationChartXAxis = tmpCalibrationChartXAxis;
this.CalibrationChartYAxis = tmpCalibrationChartYAxis;
where CalibrationChartXAxis and CalibrationChartYAxis are data bound via WPF to a Visiblox Chart XAxis and YAxis. What I get is a plot without the green curve displayed as seen below.
If I change the plot axis back to the initial configuration the green curve reappears again. Please note that I do not change the plot data series at any moment while applying those changes. I do not understand why the curve is missing when using a linear-linear scale. How can I fix that?
Upvotes: 1
Views: 160
Reputation: 1391
This appears to be a WPF rendering issue (the bug only happens when the Y values get very large, if you truncate your data the bug disappears). Using RasterLineSeries or a DirectXLineSeries instead of DataSeries won’t encounter this issue.
Upvotes: 1