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

set count of ticks in chart nv3 in model multiBarChart #2218

Open
mkhataei opened this issue Dec 17, 2019 · 0 comments
Open

set count of ticks in chart nv3 in model multiBarChart #2218

mkhataei opened this issue Dec 17, 2019 · 0 comments

Comments

@mkhataei
Copy link

I`m using multiBarChart and set reduceXTicks true. how can I set count of xTicks?
this is my result
my chart
and my code is here

var chart = nv.models.multiBarChart()
    .duration(350)
    .reduceXTicks(true)
    .rotateLabels(-45)
    .stacked(true)
    .showControls(false)
    .groupSpacing(0.3)

chart.yAxis.tickFormat(d3.format('f'));
d3.select('#chart svg')
    .datum(prepareData())
    .call(chart);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant