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

xDomain for Multichart does not work #1882

Open
leodigitalbalance opened this issue Dec 5, 2016 · 3 comments
Open

xDomain for Multichart does not work #1882

leodigitalbalance opened this issue Dec 5, 2016 · 3 comments

Comments

@leodigitalbalance
Copy link

I'm trying to force the x-axis to hold up to 24 hours but it current stops at the latest hour which is 10 am in this example. Is there a way to extend it?

image

@liquidpele
Copy link
Contributor

You can affect the axis with most of the normal d3 axis options (the axis objects are on the chart object, so you'd do like chart.xaxis.options(...)

https://nvd3-community.github.io/nvd3/examples/documentation.html#axis

You can also do chart.forceX(...) on many charts.

https://nvd3-community.github.io/nvd3/examples/documentation.html#stackedAreaChart

@leodigitalbalance
Copy link
Author

Thanks for the help but doing a forceX or xDomain skews the chart as below:

image

I'm trying to stretch the X axis to a 23 hour mark and it appears to not work

@qaqa85
Copy link

qaqa85 commented Jul 14, 2023

Did U solve it?

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

3 participants