-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Date/Time Values Format has no effect on Chart X Axis #3215
Comments
Hi @kalsolio Date/Time setting is for 'data labels' only, and has no effect on 'x-axis labels'. |
Maybe we should add a comment mentioning this in the UI? |
Perhaps a separate issue, but why can't we format the for x-axis ? (Category or DateTime) |
Hi @timc13! It's a technical issue that we currently don't have solution for. We use Plotly.js to render charts, and it's formatting syntax is really weird (probably ok for developer, but definitely not for a regular users). Once we'll find a good way to convert "human-friendly" format (that we use) to ugly one used by Plotly.js - we'll fix this issue. |
I second this request! |
please 👍 |
Hi @kravets-levko @arikfr , i found an idea to fix this bug. plotly codepen about axis tickformat In layout set Currently I cannot integrate this modification into redash, but it seems to be effective. |
Hi @yankeeguyu! Yep, we know about this, but please read this comment #3215 (comment) . D3-like syntax ( |
Hi @kravets-levko , thank you reply! Perhaps this problem can be modified as an option, such as scale, we can use Moment.js as an option, but the actual value is a d3 type value, maybe this is a feasible solution. Like this: |
Now i want to use this solution, but i encountered some problems during development. |
Value format inputs are not dropdown, it's a text inputs so user may type any valid format string. If we even imagine that we could somehow start using D3 format by default but allowing user to type Moment format string - then we still have to convert between Moment and D3 formats, but in addition we'll have to migrate already created visualizations. |
Ok, i see it! Look forward to fixing this bug! Thank you @kravets-levko ! |
Hello everyone. Is there any progress on this issue? I meet the same question in version 10.1.0.b50633. Thanks for any reply. |
The ability to specify a format for X and Y axis was added in commit 0f88a23 |
The text was updated successfully, but these errors were encountered: