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

Straight line chart - missing axis value #1821

Closed
joeclique opened this issue Jan 2, 2025 · 3 comments
Closed

Straight line chart - missing axis value #1821

joeclique opened this issue Jan 2, 2025 · 3 comments

Comments

@joeclique
Copy link

Hello!
I have a ValueAxis with next configuration: { maxPrecision: 0, strictMinMaxSelection: true }.
In the case of a straight line chart, the axis doesn't show the value. Is there a way to show it?

Line Chart

Example:
https://codepen.io/flexinclique/pen/wBwrmOv

Thank you in advance!

@martynasma
Copy link
Collaborator

I suggest increasing the granularity of grid:

const yAxis = chart.yAxes.push(
  am5xy.ValueAxis.new(root, {
    renderer: am5xy.AxisRendererY.new(root, {
      minGridDistance: 20
    }),
    maxPrecision: 0,
    strictMinMaxSelection: true,
  })
);

@roshaxo
Copy link

roshaxo commented Jan 5, 2025

@martynasma It helped, thank you!

Copy link

github-actions bot commented Feb 5, 2025

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

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

No branches or pull requests

3 participants