Giter Site home page Giter Site logo

Comments (3)

alexfauquette avatar alexfauquette commented on June 28, 2024

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.

Janpot avatar Janpot commented on June 28, 2024

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

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.

github-actions avatar github-actions commented on June 28, 2024

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.