How to use the @patternfly/react-charts.ChartThemeColor.purple function in @patternfly/react-charts

To help you get started, we’ve selected a few @patternfly/react-charts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openshift / console / frontend / packages / noobaa-storage-plugin / src / components / data-consumption-card / data-consumption-card.tsx View on Github external
orientation="horizontal"
                  symbolSpacer={5}
                  gutter={2}
                  height={30}
                  padding={{ top: 50, bottom: 0 }}
                  style={{ labels: { fontSize: 8 } }}
                />
              }
              legendPosition="bottom-left"
              padding={{
                bottom: 50,
                left: 30,
                right: 20,
                top: 30,
              }}
              themeColor={ChartThemeColor.purple}
            >
              
              
              
                {chartData.map((data, i) => (
                   // eslint-disable-line react/no-array-index-key
                ))}
github patternfly / patternfly-react / packages / patternfly-4 / react-integration / demo-app-ts / src / components / demos / BarChartDemo / PurpleBarGroupedDemo.tsx View on Github external
<div>
        <div style="{{">
           `${datum.name}: ${datum.y}`} /&gt;}
            domainPadding={{ x: [30, 25] }}
            legendData={[{ name: 'Cats' }, { name: 'Birds' }, { name: 'Dogs' }, { name: 'Mice' }]}
            legendOrientation="vertical"
            legendPosition="right"
            height={250}
            padding={{
              bottom: 50,
              left: 50,
              right: 200, // Adjusted to accommodate legend
              top: 50
            }}
            themeColor={ChartThemeColor.purple}
            width={600}
          &gt;
            
            
            
              
              </div></div>