react-magma icon indicating copy to clipboard operation
react-magma copied to clipboard

Carbon Charts: Simple bar, Grouped bar, Floating bar, Lollipop

Open silvalaura opened this issue 2 years ago • 4 comments

This is a placeholder ticket for specific requirements regarding our customization of Carbon Charts.

Chart Types

Let's find a balance of customizing the styles to fit Magma so they look cohesive together, without changing so much that we lose the value of using this library to begin with.

Figma: https://www.figma.com/file/0tifcLtTm7TodIoR5gJsrX/Magma-Data-Visualization?type=design&node-id=101%3A3535&mode=design&t=hnGgDZwMGIOHDTED-1

Here's a list of customizations I'd like us to try to do:

  1. I’d like to increase the font size and change color of the text in the little popovers.

Image

  1. I'd like to increase the size of the boxes/checkboxes in the legend to 16px.

Image

  1. On the modal that opens for the table view, round the corners of the modal to 8px.

Image

  1. Let's try to make sure the focus outline matches our blue color everywhere it appears. This is an example of the wrong blue.

Image

  1. Work with the styles of the button at the bottom of the modal

Image

  1. Work with the CSS so that the dark mode doesn't have a black background behind the chart

Updated color palette and order:

  • #009AF3
  • #E0004D
  • #1EA746
  • #FA6600
  • #B12FAD
  • #00A393
  • #005F96
  • #8F0033
  • #136A2D
  • #B84900
  • #711E6E
  • #005249

Dark mode

  • #1FB0FF
  • #FF337A
  • #65E000
  • #FF9147
  • #D45ED0
  • #00E0CA
  • #85D4FF
  • #FF99BD
  • #FFB685
  • #C7FF99
  • #E9AFE7
  • #99FFF5

silvalaura avatar Apr 25 '23 20:04 silvalaura

We will mimic Carbon's storybook: image image image image

silvalaura avatar Oct 26 '23 13:10 silvalaura

Feedback:

  • Title text needs to be updated to #454545

Image

  • The squares are supposed to be 16px square.

Image

  • The text inside the popovers is supposed to be #454545. This looks darker.

Image

  • All of the text in this modal is supposed to be #454545

Image

  • Make all text in the dark mode = white

Image

  • Need to update colors of the tabular representation modal. I'll add that to a separate comment.

  • In dark mode, the lines on the graph background are almost impossible to see. Let's try making the x and y axis white, and then the grid lines white at 50% opacity.

  • Can we try removing the black border on those squares in dark mode?

Image

  • Can we try updating the focus color to use our inverse focus color?

Image

Image

  • On the dark mode loading skeleton, we need the background to not be black.

Image

orion-cengage avatar Oct 31 '23 18:10 orion-cengage

Here is a guide to styling the modal

https://www.figma.com/file/0tifcLtTm7TodIoR5gJsrX/Magma-Data-Visualization?type=design&node-id=326%3A1741&mode=design&t=t2g3yABCz0g2OVWI-1

Image

orion-cengage avatar Oct 31 '23 18:10 orion-cengage

As far as adding charts to docs, let's make sure:

  • we are very clear we are re-skinning Carbon Charts (link to https://carbondesignsystem.com/data-visualization/chart-types/)
  • we will not have a design docs page, we will combine this kind of information within the dev page. if we decide it's too much info, we could break it out to explain things like color choices, axis, etc.
  • recommendations for what type of chart for what kind of data (carbon does this)
  • should we link to storybook or codesandbox? how many examples of each type do we need?
  • update LineChart component to link to new charts
  • give example of expected data structure

silvalaura avatar Nov 13 '23 20:11 silvalaura