Comments (4)
The solution is in the BarPlot component code:
https://github.com/mui/mui-x/blob/master/packages/x-charts/src/BarChart/BarPlot.tsx/#L194-L208
The following code can not work because the x-axis is a band scale by default. So it can only accept values in the data
property. But the y-axis is a numerical value which can always accept 0
xOrigin: xScale(0)!,
yOrigin: yScale(0)!,
We need to adapt the typing
from mui-x.
Hey @prolink007 ... thanks for raising this issue. 🙇🏼
I can confirm it and will add this to the board!
from mui-x.
For some reason the scale function here will always return undefined
when called with 0
.
@JCQuintas could you take this?
from mui-x.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@prolink007: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
from mui-x.
Related Issues (20)
- Date range picker selecting future date reset the value HOT 1
- [data grid] Incorrect table height if height is inherited HOT 5
- [data grid] I would like to display the data-grid filter panel elsewhere HOT 2
- [data grid] Indicate a loading state when searching through quick filter in datagridpro. HOT 3
- [charts] Overlap on legend in ResponsiveChartContainer HOT 2
- [pickers] expired package version HOT 3
- [data grid] How to put links on elements of a grouping column ? HOT 7
- [docs] Add Tailwind setup and examples
- [pickers] Datepicker prop view doesn't controll the visible view HOT 3
- [DataGrid] Issue while resizing with pinned columns HOT 1
- [data grid] Grid has inconsistent background HOT 3
- [pickers] disable autofocus to start when selecting end-range HOT 1
- [data grid] Support scrolling in any direction HOT 1
- [data grid] How can I add an event handler on each row to handle file drops HOT 3
- [pickers] Build error because of `@mui/utils/clamp` HOT 7
- [pickers][MobileDatePicker] Too much recursion error when using MobileDatePicker inside a IonModal component HOT 1
- [data grid] Filter panel columns customize HOT 3
- [pickers][DateRangePicker] Separately disable start and end date picking HOT 4
- [data grid] Multi Selection functionality in the Columns visibility panel HOT 1
- [data grid] `valueGetter` row is always never HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.