Skip to content
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

react: add plotly.js #1153

Merged
merged 2 commits into from
Jan 19, 2021
Merged

react: add plotly.js #1153

merged 2 commits into from
Jan 19, 2021

Conversation

tony
Copy link
Owner

@tony tony commented Jan 1, 2021

Staging URL: https://cv-react-v2.git-pull.com/dev/branch/v2-plotly/

https://plotly.com/javascript/

https://github.com/plotly/plotly.js

image

Good things:

  • Lots of examples
  • Mature library

Ugly things:

  • Animating / transitions is a joke. Other chart libs are beautiful out of the box.

    Donut charts don't seem toe animate at all (2020-01-02). The line chart updates are really flakey. This surprised for me for a framework that otherwise did very well

  • Lack of callbacks for formatting labels, colors. You have to render the array yourself, and don't have access to the context passed by chart (so you have to calculate the % of a pie on your own)

  • On the tracker, some in the community espoused an attitude of "this is for scientific data" (that's fine), but contraposed against rationale appreciate sensible API aesthetics and development happiness in the lib itself 😬 Why sabotage what could be a good thing?

    It's unlikely that the maintainers will implement this in the near future. The main target for plotly.js is scientific plotting and as such, it's generally preferred to preserve the results of data - a data field with a value of 0 is still significant in the eyes of science. source

    What does being scientific have to do with hiding labels? It's styling. Is there a secret principle in science where people need this?

    image

    My workaround: First, second approach with TypeScript friendliness

  • Packaged very oddly, so the library may simply cease to work for some

    Native ES6 modules vs. the bundle plotly/plotly.js#3518 (comment)

    The issue has a $10,000-$15,000 bounty

    image

    I support this project commercially funding itself. I support them earning a profit. But it's really painful when theirs internal architectural changes in such a big project. I feel for them.

    As of 2020-01-02, when I click on sandboxes for react-plotly.js, they should document not found.

Tweaks:

@tony tony merged commit 1226522 into master Jan 19, 2021
@tony tony deleted the v2-plotly branch January 19, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant