How to use the @patternfly/react-charts.ChartThemeColor.multi 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 patternfly / patternfly-react / packages / patternfly-4 / react-integration / demo-app-ts / src / components / demos / LineChartDemo / LineChartColorDemo.tsx View on Github external
containerComponent={}
            legendData={[
              { name: 'Cats' },
              { name: 'Dogs', symbol: { type: 'dash' } },
              { name: 'Birds' },
              { name: 'Mice' }
            ]}
            legendPosition="bottom"
            height={275}
            padding={{
              bottom: 75, // Adjusted to accommodate legend
              left: 50,
              right: 50,
              top: 50
            }}
            themeColor={ChartThemeColor.multi}
            width={450}
          >
github openshift / console / frontend / packages / ceph-storage-plugin / src / components / dashboard-page / storage-dashboard / top-consumers-card / top-consumers-card-body.tsx View on Github external
scale={{ x: 'time' }}
          >
             twentyFourHourTime(x)}
              style={{ tickLabels: { fontSize: 8, padding: 5 } }}
            />
            
            {chartLineList}
          
          
        
      );
    }
    return ;
github patternfly / patternfly-react / packages / patternfly-4 / react-integration / demo-app-ts / src / components / demos / PieChartDemo / PieColorDemo.tsx View on Github external
render() {
    return (
      <div style="{{">
        <div>
           `${datum.x}: ${datum.y}`}
            legendData={[{ name: 'Cats: 35' }, { name: 'Dogs: 55' }, { name: 'Birds: 10' }]}
            legendPosition="bottom"
            themeColor={ChartThemeColor.multi}
            width={300}
          /&gt;
        </div>
      </div>
    );
  }
}
github kiali / kiali-ui / src / pages / Overview / OverviewCardSparkline.tsx View on Github external
render() {
    if (this.props.metrics &amp;&amp; this.props.metrics.length &gt; 0) {
      const data = graphUtils.toVCLines(this.props.metrics);

      return (
        <div>
          {'Traffic, ' + getName(this.props.duration).toLowerCase()}
          <div>
            
              {data.series.map((serie, idx) =&gt; (
                
              ))}
               ''} /&gt;
               ''} /&gt;
            
          </div>
        </div>
      );
    }
    return <div style="{{">No traffic</div>;
  }
}
github openshift / console / frontend / packages / noobaa-storage-plugin / src / components / capacity-card / capacity-card-body.tsx View on Github external
return ;
  }
  const totalHumanized = humanizeBinaryBytesWithoutB(totalUsage, null, totalUsage ? null : 'MiB');
  return (
    <div>
      <div>
         `${datum.x}: ${humanizePercentage(totalUsage ? datum.y : 0).string}`}
          themeColor={ChartThemeColor.multi}
          themeVariant={ChartThemeVariant.light}
          title={totalHumanized.string}
        /&gt;
      </div>
    </div>
  );
};
github patternfly / patternfly-react / packages / patternfly-4 / react-integration / demo-app-ts / src / components / demos / DonutChartDemo / DonutRightAlignedLegendColorDemo.tsx View on Github external
render() {
    return (
      <div>
        <div style="{{">
           `${datum.x}: ${datum.y}%`}
            legendData={[{ name: 'Cats: 35' }, { name: 'Dogs: 55' }, { name: 'Birds: 10' }]}
            legendOrientation="vertical"
            legendPosition="right"
            subTitle="Pets"
            title="100"
            themeColor={ChartThemeColor.multi}
            themeVariant={ChartThemeVariant.light}
            width={350}
          /&gt;
        </div>
      </div>
    );
  }
}