Skip to content

ColorScale

Source code

Description

https://openpyxl.readthedocs.io/en/stable/api/openpyxl.formatting.rule.html

Usage

ColorScale(cfvo = NULL, color = NULL, ...)

Arguments

cfvo cfvo
color color
Additional arguments, i.e. kwargs.

Value

An openpyxl Python object.

Examples

library("xlcharts")

first <- FormatObject(type = 'min')
last <- FormatObject(type = 'max')
# colors match the format objects:
colors <- list(Color('AA0000'), Color('00AA00'))
cs2 <- ColorScale(cfvo = list(first, last), color = colors)