This repository has been archived by the owner on May 24, 2024. It is now read-only.
Reflow and loadContent/unloadContent sometimes cause y2-axis ticks to grow infinitely #275
Open
1 of 8 tasks
Labels
Milestone
Bug Report
Description
I am reusing the same Graph instance between "loads" of data but will adjust some of the properties. Hence, I have been using
Graph.reflowMultipleDatasets()
and then callingGraph.unloadContent()
with my prior content data and then loading new content. It seems there must be some circumstance that is causing the y2-axis upper/lower limit to continually grow. I have created a repo that recreates the issue for your convenience.The reproduction uses the exact same GRAPH_DATA and CONTENT_DATA. This mimics my data fetching when the user hasn't changed any options (date range or results) so the same data structure is generated.
Graphs affected
Steps to Reproduce
Link to CodeSandbox
Sorry, I can rarely get CodeSandbox to load for me. Hence, creating a repo for reproducing the issue.
Edit: Finally got CodeSandbox to load.
https://codesandbox.io/s/carbon-graph-y-axis-issue-ztmqd
Additional Context / Screenshots
You can see that the y2 data set is getting pinched.
Expected Behavior
With the same inputs, I'd expect the exact same graph output.
Possible Solution
Environment
@ Mentions
The text was updated successfully, but these errors were encountered: