Skip to content

feat(GlColumnChart): Add additional `bars` and `lines` props

What does this MR do?

This MR adds additional bars and lines props to the stacked column and column charts to provide additional flexibility in how we display the data.

Updates the stacked chart and column chart to take additional properties so that we can:

  • Replace the data prop with a bars (and or lines)
  • Apply a trendline
  • Simplify data configuration

NOTE: the data prop can be removed once we update the current charts in the gitlab project.

Does this MR meet the acceptance criteria?

Conformity

  • Code review guidelines.
  • GitLab UI's contributing guidlines.
  • If it changes a Pajamas-compliant component's look & feel, the MR has been reviewed by a UX designer.
  • If it changes GitLab UI's documentation guidelines, the MR has been reviewed by a Technical Writer.
  • If the MR changes a component's API, integration MR(s) have been opened in the following projects to ensure that the @gitlab/ui package can be upgraded quickly after the changes are released:
  • Added the ~"component:*" label(s) if applicable.

Closes #931 (closed)

Closes #931 (closed)

Edited by Ezekiel Kigbo

Merge request reports