You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all, Use Case: I need to show some charts in client calendar system (e.g. Jalali) The Problem: digging the docs, i can't figure out how to do that, Possible Solutions: i know this is possible in some other charting libraries (e.g. Hicharts via a plugin which uses JDate itself, or for others that use Moment.js internally, there is a moment-jalaali plugin) Workaround: even the input data and internal calculations can be normally in current Calendar system, but before rendering, it can be a formatter function/hook (dateformat) that do the actual conversion.
I wonder if there is a solution/workaround for the awesome Plotly.
any help would be highly appreciated.
Note that GitHub issues are reserved for bug reports and feature requests only.
Implementation questions should be asked on Stack Overflow (tagged plotly) or on community.plot.ly (tagged plotly-js).
To answer your question, the best workaround for this would be to convert your dates into numbers and show custom tickvals and ticktext on your independent axis.
@etpinard your workaround worked! thank you
about feature implementation, simpler alternatives could be taken.
e.g. tickformat could be allowed to take a function, inside that, user can do anything
Activity
etpinard commentedon Jan 20, 2016
From the contributing guidelines:
etpinard commentedon Jan 20, 2016
To answer your question, the best workaround for this would be to convert your dates into numbers and show custom
tickvalsandticktexton your independent axis.mbande commentedon Jan 20, 2016
thank you @etpinard,
could it be a dateformat or like in future releases?
can you label this issue as a feature request?
etpinard commentedon Jan 20, 2016
If we end doing it, it won't be be part of this project. Adding a dependency on moment.js would blow up our already-big bundle size.
mbande commentedon Jan 20, 2016
@etpinard your workaround worked! thank you
about feature implementation, simpler alternatives could be taken.
e.g. tickformat could be allowed to take a function, inside that, user can do anything
mdtusz commentedon Jan 20, 2016
We're open to pull requests :)
alexcjohnson commentedon Dec 9, 2016
closed in #1220