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

[G2M] Plotly/improve sizing #156

Merged
merged 9 commits into from
Feb 1, 2022
Merged

[G2M] Plotly/improve sizing #156

merged 9 commits into from
Feb 1, 2022

Conversation

vxsl
Copy link
Contributor

@vxsl vxsl commented Jan 27, 2022

dependency for EQWorks/widget-studio#68

  • integrated vanilla plotly.js using solution from On hooks plotly/react-plotly.js#242, removing the need for the react-plotly.js library altogether. This package didn't provide any additional functionality and was keeping us locked below the most current plotly version.

  • generally reworked the way that plots are sized, should be more predictable and performant

  • added special logic for pie charts to not render the titles too far away from the actual visualization.

    • before:
      image

    • after:
      image


deps

added

  • react-resize-detector

removed

  • react-plotly.js

@vxsl vxsl changed the title [WIP] Plotly/improve sizing [G2M] Plotly/improve sizing Jan 27, 2022
@vxsl vxsl marked this pull request as ready for review January 27, 2022 21:23
@vxsl vxsl changed the title [G2M] Plotly/improve sizing [WIP] Plotly/improve sizing Jan 28, 2022
@vxsl vxsl force-pushed the plotly/improve-sizing branch 6 times, most recently from f60acb6 to 6e64a20 Compare January 28, 2022 18:14
@vxsl vxsl changed the title [WIP] Plotly/improve sizing [G2M] Plotly/improve sizing Jan 28, 2022
@vxsl vxsl changed the title [G2M] Plotly/improve sizing [WIP] Plotly/improve sizing Jan 28, 2022
@vxsl vxsl changed the title [WIP] Plotly/improve sizing [G2M] Plotly/improve sizing Jan 28, 2022
@vxsl vxsl merged commit de4d604 into master Feb 1, 2022
@vxsl vxsl deleted the plotly/improve-sizing branch February 1, 2022 19:42
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

Successfully merging this pull request may close these issues.

None yet

3 participants