Skip to content

Conversation

@JansenNick
Copy link
Contributor

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other (describe)

What is the purpose of this PR?

Plotly allows for null in your data and will by default fill up gaps. It also has the option to set connectgaps to false so you can have a line with gaps in between. https://plotly.com/javascript/line-charts/#connect-gaps-between-data

The code that this pull request removes prevents null ending up in your data set, even though plotly can handle this. Right now if you would have an empty value in your dataset the chart would not render.

By removing this code, the chart will still render when you have an empty value in your data, by default it will connect the gaps and you will have to option to turn this off.

@JansenNick JansenNick requested a review from a team as a code owner November 1, 2022 15:15
@iobuhov
Copy link
Collaborator

iobuhov commented Nov 1, 2022

@JansenNick, your change cause TypeScript errors, please fix the types and run pnpm -w run build --filter charts-web to make sure TS has no complains

P.S. Thank you for PR

@iobuhov iobuhov merged commit dd4a56e into mendix:main Nov 10, 2022
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.

3 participants