You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the new feature of CartesianChart MatchAxesScreenDataRatio="True", when the scater values range in X is larger than the value range in Y times the aspect ratio, the initial zoom fails at producing an orthonormal grid and the graph is cropped on the left and right edges.
What is more: zooming out does not help, and the chart behaves as if ZoomMode="PanX" .
To Reproduce
For instance Plot a List=[new(0,0), new(3,1)] on a 1:1 UI chart (same height and width)
Expected behavior
Initial zoom encompassing the entire horizontal range of the data
It would be great to match the separators intervals even when ForceStepToMin = false ( in the meantime, how could i implement it using a
ScreenshotsD Using MatchAxesScreenDataRatio="True"
Using a Custom axis scale, it works like a charm
as per described in your updated docs here with const int timesScale = 1;
What is more, the code is much simpler...
Desktop
OS: W10
WPF
Livecharts Version="2.0.0-rc5.4
My understanding of the issue is the logic backing #LiveCharts2/src/LiveChartsCore
/SharedAxes.cs/ MatchSlopes(LvcSize drawMarginSize, ICartesianAxis source, ICartesianAxis target), in particular here :
var sourceDimension = source.Orientation == AxisOrientation.X
? drawMarginSize.Width
: drawMarginSize.Height;
var sourceScreenDataRatio = sourceDimension / (maxSourceData - minSourceData);
var targetDimension = target.Orientation == AxisOrientation.X
? drawMarginSize.Width
: drawMarginSize.Height;
var desiredTargetDelta = targetDimension / sourceScreenDataRatio;
... But I may be wrong, i am getting confused with you logic considering the prior MatchAxesScreenDataRatioDelegate
By the way, thank you again for your brilliant work. The last RC5 is great !
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the new feature of CartesianChart MatchAxesScreenDataRatio="True", when the scater values range in X is larger than the value range in Y times the aspect ratio, the initial zoom fails at producing an orthonormal grid and the graph is cropped on the left and right edges.
What is more: zooming out does not help, and the chart behaves as if
ZoomMode="PanX"
.To Reproduce
For instance Plot a List=[new(0,0), new(3,1)] on a 1:1 UI chart (same height and width)
Expected behavior
ForceStepToMin = false
( in the meantime, how could i implement it using aScreenshotsD
Using MatchAxesScreenDataRatio="True"
Using a Custom axis scale, it works like a charm
as per described in your updated docs here with
const int timesScale = 1;
What is more, the code is much simpler...
Desktop
My understanding of the issue is the logic backing #LiveCharts2/src/LiveChartsCore
/SharedAxes.cs/ MatchSlopes(LvcSize drawMarginSize, ICartesianAxis source, ICartesianAxis target), in particular here :
... But I may be wrong, i am getting confused with you logic considering the prior
MatchAxesScreenDataRatioDelegate
By the way, thank you again for your brilliant work. The last RC5 is great !
The text was updated successfully, but these errors were encountered: