VictoryTheme

Implement themes for your Victory charts. VictoryTheme allows you to create a consistent look across all of your chart elements, either by using one of the included themes or by creating your own. VictoryTheme and custom themes are supported by all Victory components. By default, Victory components use the grayscale theme.

Read more about themes here.

To create your own theme, create an object with props and styles specified for any combination of the following namespaces:

Note: The dependentAxis and independentAxis will be merged with any props and styles supplied in the axis namespace.

{
  area: {...props},
  axis: {...props},
  dependentAxis: {...props},
  independentAxis: {...props},
  bar: {...props},
  candlestick: {...props},
  chart: {...props},
  errorbar: {...props},
  group: {...props},
  legend: {...props},
  line: {...props},
  pie: {...props},
  scatter: {...props},
  stack: {...props},
  tooltip: {...props},
  voronoi: {...props}
}