How to use the @patternfly/react-charts.ChartThemeVariant.default 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 kiali / kiali / vendor / github.com / kiali / k-charted / web / pf4 / src / components / Dashboard.tsx View on Github external
private renderChart(chart: ChartModel, expandHandler?: () => void) {
    const colors = this.props.colors || getTheme(ChartThemeColor.multi, ChartThemeVariant.default).chart.colorScale;
    const dataSupplier = getDataSupplier(chart, { values: this.props.labelValues, prettifier: this.props.labelPrettifier }, colors);
    let onClick: ((datum: VCDataPoint) => void) | undefined = undefined;
    if (this.props.onClick) {
      onClick = (datum: VCDataPoint) => this.props.onClick!(chart, datum);
    }
    return (