Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line/ Bar chart y-axis limit issue #1830

Open
JinsMampuzha opened this issue Jan 20, 2025 · 3 comments
Open

Line/ Bar chart y-axis limit issue #1830

JinsMampuzha opened this issue Jan 20, 2025 · 3 comments
Labels

Comments

@JinsMampuzha
Copy link

JinsMampuzha commented Jan 20, 2025

Question
I am trying to integrate a Bar chart. When I limit the Y axis, and one of the data set is greater than the limit, then the chart becomes inverted. How to fix it?

Environment (if applicable)
amcharts v(5.8.3)
cefsharp chromium browser (119.4.3)

Additional context

I have two axis, left Y-axis and right Y- axis.

let leftYAxis = chart.yAxes.push(
        am5xy.ValueAxis.new(root, {
            renderer: am5xy.AxisRendererY.new(root, {
            }),
            max: 30,
            strictMinMax: 30,          
        })
    );
    let rightYAxis = chart.yAxes.push(
        am5xy.ValueAxis.new(root, {
            max: 60,
            strictMinMax: 60,
            renderer: am5xy.AxisRendererY.new(root, {
                opposite: true,
            })
        })
    );

One of the data set in left axis has value 33. This time The graphs became inverted. Also labels are not showing.

Image

@martynasma
Copy link
Collaborator

Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?

@JinsMampuzha
Copy link
Author

JinsMampuzha commented Jan 20, 2025

Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?

I can't share the complete code because it includes sensitive/confidential details.

@martynasma
Copy link
Collaborator

Well, you can change the actual numbers/names to anything else.

The screenshot looks weird. I don't know why having two Y axes should flip series like that, so it must be something else. Impossible to tell, though, without seeing your actual code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants