[−][src]Function rustvis::barchart::draw_horizontal_gradient_barchart
pub fn draw_horizontal_gradient_barchart(
img: &mut DynamicImage,
barchart: &Chart,
preset: &str
)
Draw a vertical barchart, where the bars are filled with a gradient.
Arguments
img
- Image to draw the barchart onto.barchart
- Barchart struct, which contains all data & meta-data about the barchart.preset
- Preset name for the gradient. Can be: "pinkblue", "pastel_pink", "pastel_mauve", "lemongrass"