Colors
Reaviz offers a variety of preset color schemes that you can use in your charts via the colorScheme
attribute. These color schemes are based on the ColorBrewer (opens in a new tab) palettes, ensuring that you have a range of visually appealing options for your data visualizations.
unifyviz
unifyvizwarm
unify8Colors
cybertron
OrRd
PuBu
BuPu
Oranges
BuGn
YlOrBr
YlGn
Reds
RdPu
Greens
YlGnBu
Purples
GnBu
Greys
YlOrRd
PuRd
Blues
PuBuGn
Viridis
Spectral
RdYlGn
RdBu
PiYG
PRGn
RdYlBu
BrBG
RdGy
PuOr
Set2
Accent
Set1
Set3
Dark2
Paired
Pastel2
Pastel1
orrd
pubu
bupu
oranges
bugn
ylorbr
ylgn
reds
rdpu
greens
ylgnbu
purples
gnbu
greys
ylorrd
purd
blues
pubugn
viridis
spectral
rdylgn
rdbu
piyg
prgn
rdylbu
brbg
rdgy
puor
set2
accent
set1
set3
dark2
paired
pastel2
pastel1
Using Color Schemes
To apply a color scheme to your chart, simply set the colorScheme
attribute to the desired scheme. For example:
import { BarChart } from 'reaviz';
const data = [
{ key: 'DLP', data: 13 },
{ key: 'SIEM', data: 2 },
{ key: 'Endpoint', data: 7 }
];
<BarChart data={data} colorScheme="unifyviz" />;
This will render your chart using the "unifyviz" color scheme.