Comments (3)
The mains reason why BarPlot
needs a band
scale is the notion of bandWidth
which is unique to this scale.
From what I understand, the main benefit of your proposal would be to have a nice formatting out of the box, instead of having to define formater as follow
valueFormatter: (date, context) =>
context.location === 'tick'
? date.toLocaleTimeString(/* option to only display hours */)
: `date.toLocaleString(/* option for the entire timestamp */)`,
Do I miss other nice feature it would bring?
from mui-x.
From what I understand, the main benefit of your proposal would be to have a nice formatting out of the box, instead of having to define formater as follow
Not quite exactly, it's not uncommon to represent time series with bars, or stacked bars. Especially when the data points are evenly spaced. Yet, the way I understand, the X-axis for a time series gets formatted differently than just formatting tick marks:
![Screenshot 2024-03-22 at 18 34 49](https://private-user-images.githubusercontent.com/2109932/316117457-8d55ce67-47a5-4255-adc0-c6ff98ab87d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1NDU0NjMsIm5iZiI6MTcxOTU0NTE2MywicGF0aCI6Ii8yMTA5OTMyLzMxNjExNzQ1Ny04ZDU1Y2U2Ny00N2E1LTQyNTUtYWRjMC1jNmZmOThhYjg3ZDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjhUMDMyNjAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWFkNzE0MjQwZGExZjNhOTBkOGRiNGRiN2M4YjA5YWJkMTQ2MDYzNTY1ZmVlNzdjYWRhMWViZDQyOTA3OGM1ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.P3PDlDw-BH9jxYM89rWA4lZWQX8Oy9jT6m30TE3hnDE)
Here there is for instance the "...11PM Sat 23 01AM..." and it looks like it also adapts the amount of ticks to the available space. Basically, I'd like a variant on line/area chart but where the line is represented by bars.
e.g. see also https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/time-series/#time-series
=> https://play.grafana.org/d/000000016/1-time-series-graphs?orgId=1&viewPanel=17
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.
@Janpot: 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)
- [data grid] Checkbox selection with tree data HOT 1
- [fields] on Android: deleting the date template is possible and breaks the component HOT 3
- [Data Grid] Header Filters breaks if filterOperators is set to undefined HOT 1
- [data grid] Adding Textfield to Datagrid HOT 2
- [data grid] Valueparser not called when clearing cell HOT 2
- [charts] `onMarkClick` not working HOT 5
- [question] Can you help me adding code for the ticket https://github.com/mui/mui-x/issues/13298 HOT 2
- [data grid] Shift + Arrow Keys Not Selecting Correct Rows After Independent Row Selection HOT 2
- [charts][docs] The AxisConfig API page is wrong
- [data grid] Can't scroll to end of dataset fast with paginationModel='server' HOT 5
- [data grid] re-rendering / resetting filter on state change HOT 2
- [question] I am using the row grouping feature with mui premium. By default the total row count is calculated based on number of parent rows (top level rows). I need a way to set the page row count based on the number of child rows. Is there any way to do that? HOT 1
- Page row count to be set on child rows when row grouping is applied
- & .MuiDataGrid-columnHeaders is not working with @mui/x-data-grid-pro": ^7.1.1
- [charts] How to add min and max scaling on axis for bar charts to remove decimal scale values HOT 3
- DataGrid changing data is slow
- [question] How can i remove column sorting from datagridView ? (^6.19.6)
- MUI Datagrid sortComparator function signature is not available when using typescript
- [data grid] Row spanning with tree/grouping behavior
- [docs]
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.