Visualize variance between two time series (baseline and real) in the same units as the time series. Choose colors parameter accordingly to buisness interpretation of larger/smaller values.

column_chart_absolute_variance(
x,
baseline,
real,
colors = 1,
data = NULL,
x_title = "PY",
x_style = "previous",
interval = "months"
)

## Arguments

x vector containing labels for x axis or name of column in data with values of x axis labels vector containing base values or name of column in data with base values vector containing values that will be compared to baseline or name of column in data with that values 1 if green color represents positive values having good buisness impact and red negative values having bad impact or 2 if otherwise data frame with columns containing data for x, baseline or real series the title of the plot style of the x axis to indicate baseline scenario. The default is 'prevoius'. intervals on x axis. The width of the bars depends on this parameter

## Value

object of class tidychart with a character vector containing SVG elements

## Examples

x <- month.abb
baseline <- rnorm(12)
real <- c(rnorm(6, mean = -1), rnorm(6, mean = 1))
column_chart_absolute_variance(x, baseline, real, x_title = 'profit')