-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[charts] LineChart have only MuiChartsAxis-right and not left #14817
Comments
Hi @DonikaV you can try something like on this codesandbox: https://codesandbox.io/p/sandbox/gracious-lovelace-5k4z83 Axis formatting goes into the axis configuration, though it shouldn't break the tick positioning, I'll take a look at that. |
Amazing! Thank you so much!
And in the bottom I will add also buttons with same labels and on click will change series data |
I don't think you should use the |
BTW with these settings, grid={{ horizontal: true }}, grid is not presented... On your demo as well. |
Grid seems to be applied only to the first axis, so you would need to remove the linear axis {
id: "linearAxis",
scaleType: "linear",
}, |
Tried this,
|
yes, the current grid renders based on the shown axis. To have a "square" grid on a "log" axis you would have to go into more in-depth customization Creating custom components: https://mui.com/x/react-charts/components/ |
Hey @DonikaV is this issue resolved for you with the provided solutions? If yes, feel free to close it! Thanks! |
The issue has been inactive for 7 days and has been automatically closed. |
Hello, i am new to x-charts and maybe because lack of knowledge I don't know how to do it and can not find it in the docs. So I want to have only MuiChartsAxis-right and not render the left one, because if I do what I have now - the chart have less width than it should have.
I am trying to build an expenses chart with buttons in the bottom which will be clickable, this is what I disabled bottom information and will add my custom ones. Also, I don'know how to add "$" to the values at the right. I tried
valueFormatter = (value) =>
$${value},
but it brokes the UISo this is my code:
This is what I have
and this is what I want to have
Search keywords:
Search keywords:
The text was updated successfully, but these errors were encountered: