Skip to content

To Show non-Gregorian Calendars #196

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

Closed
mbande opened this issue Jan 20, 2016 · 7 comments
Closed

To Show non-Gregorian Calendars #196

mbande opened this issue Jan 20, 2016 · 7 comments

Comments

@mbande
Copy link

mbande commented Jan 20, 2016

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.

@etpinard
Copy link
Contributor

From the contributing guidelines:

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).

@etpinard
Copy link
Contributor

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.

@mbande
Copy link
Author

mbande commented 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
Copy link
Contributor

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
Copy link
Author

mbande commented 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
Copy link
Contributor

mdtusz commented Jan 20, 2016

We're open to pull requests :)

@alexcjohnson
Copy link
Collaborator

closed in #1220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants