Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Show every # Ticks on Bar Chart #219

Open
VanessaChu opened this issue Jan 5, 2018 · 3 comments
Open

Show every # Ticks on Bar Chart #219

VanessaChu opened this issue Jan 5, 2018 · 3 comments

Comments

@VanessaChu
Copy link

Is there a way to show every 5 ticks on the bar chart on the x-axis?

For example 30 sets of datas
only show 5, 10, 15, 20, 25, 30 labels on x-axis

Thank you

@UladzimirKuzmin
Copy link

UladzimirKuzmin commented Jan 7, 2018

@VanessaChu, you just need to pass a tickCount (quantity of the ticks on the axis you want) as an options property of the x-axis as:

let options = {
  axisX: {
    tickCount: 15,
    ...
  },
  axisY: {
    ...
  }
};

@VanessaChu
Copy link
Author

This didn't work for the bar graph. :(

@marzolfb
Copy link
Contributor

Unfortunately no, there is no current support for this use case.

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

No branches or pull requests

3 participants