Skip to content
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
kczx3 opened this issue Dec 2, 2021 · 2 comments
Open
1 of 8 tasks

Comments

@kczx3
Copy link

kczx3 commented Dec 2, 2021

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 calling Graph.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

  • Bar graph
  • Bubble graph
  • Gantt chart
  • Line graph (only tested with Line)
  • Paired result
  • Pie chart
  • Scatter plot
  • Timeline

Steps to Reproduce

  1. https://github.com/kczx3/carbon-graph-issues
  2. Steps are in the README

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

Expected Behavior

With the same inputs, I'd expect the exact same graph output.

Possible Solution

Environment

  • Component Name and Version: Carbon Graphs - Line Graph
  • Browser Name and Version: Edge 95
  • Node/npm Version: [e.g. Node 8/npm 5]
  • Webpack Version:
  • Operating System and version (desktop or mobile): Win 10 20H2

@ Mentions

@chrismichalewicz
Copy link

UXPLATFORM-6895 logged to track this internally.

@chrismichalewicz
Copy link

chrismichalewicz commented Oct 18, 2022

Investigation completed, Defect Jira UXPLATFORM-7542 was logged to address this.

@chrismichalewicz chrismichalewicz added this to the Backlog milestone Oct 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.