Skip to content

Multi Y-axis Cartesian chart panning ends with changed y-axis range #1939

@ajschooneveld

Description

@ajschooneveld

Describe the bug
After panning a multi Y-axis Cartesian chart, one of the y-axis is changed unintensionally.

A Carteisan chart with DateTimePoints and 1 x axes and 2 yaxis and ZoomMode=Both. The line series and axis use binding to the view model.
One y-axis has MinLimit=-1 and Maxlimit=3, the other axis has MinLimit = -3 and MaxLimit=1.

To Reproduce
Steps to reproduce the behavior:

  1. Create sine waves between -1 and 1 for both line series.
  2. Set the MinLimit and MaxLimit of the axes as described above. You see 2 sine waves one above the other.
  3. Start panning with the mouse. The sine waves move as expected.
  4. Release the mouse button. The two sine waves are drawn at the same position instead of one above the other. You can see one of the y axes ranges has changed, although the MinLimit and MaxLimit haven't been changed by the program.

Expected behavior
Two sine waves are shown one above the other.

Screenshots
Before and during panning:

Image

After panning, one axis has changed:

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser not applicable. Is a .Net Framework 4.8 WPF app.
  • Version LiveCharts2 2.0.0 -rc5.4

Smartphone (please complete the following information):
N.A.

Additional context
I include a sample sample program to reproduce the behaviour.

TestChartBug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions