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

Custome CSS for Chart

Open bharamgundea77 opened this issue 8 years ago • 2 comments

how to use custome css, colors for charts ? is there a additional way to send options ?

bharamgundea77 avatar Sep 27 '18 03:09 bharamgundea77

Please see https://github.com/react-tools/react-charts/blob/master/www/src/containers/CustomStyles.js

tannerlinsley avatar Nov 26 '18 17:11 tannerlinsley

This works for me.

const data = React.useMemo(
    () => [
      {
        label: 'Series 1',
        data: [
          { primary: 'Oct', secondary: 10 },
        ],
        color: '#1f77b4'
      },
      {
        label: 'Series 2',
        data: [
          { primary: 'Oct', secondary: 5 },
        ],
        color: '#ff7f0e'
      },
      {
        label: 'Series 3',
        data: [
          { primary: 'Oct', secondary: 7 },
        ],
        color: '#ffff4d'
      }
    ],
    []
  )

jonnjasperejoc avatar Jan 18 '21 09:01 jonnjasperejoc