I'm setting the color of each data of the series depending on one variable the punch type. I've been using rgba for the color
Code: Select all
series:{
data: [{
y: hours,
x: categories.indexOf(dayJs(item.applicableDate).format(ABBR_MONTHDATE_DAY)),
color: `rgba(${PUNCH_TYPE_COLOR_MAP[item.punchType]}, 0.32`,
selected: index === 0,
}],
allowPointSelect: true,
states: {
select: {
color: `rgba(${PUNCH_TYPE_COLOR_MAP[item.punchType]}, 1`,
},
},
custom: {
isOpen: item.isOpen,
date: item.applicableDate,
},
}
but on export it looks like this