is there a way to get the value of the xAxis at the color function? in my case the xAxis value would be 2:00 and the yAxis would be 44. The color function give me 44 but I need the 2:00 value as well
vm.chartSettings = {
title: "24HR Period of Data",
description: "Kilowatts per Hour",
showLegend: true,
source: vm.source,
enableAnimations: true,
padding: { left: 5, top: 5, right: 50, bottom: 5 },
titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
xAxis:
{
dataField: 'Hour',
showGridLines: true
},
colorScheme: 'scheme01',
seriesGroups:
[
{
type: 'column',
columnsGapPercent: 50,
valueAxis:
{
unitInterval: 350,
displayValueAxis: true,
description: 'KW'
},
series: [
{
dataField: 'KW',
displayText: 'KW',
colorFunction: function (value, itemIndex, serie, group, categoryValue, categoryAxis) {
return vm.setBarColor(value, itemIndex, serie, group, categoryValue, categoryAxis);
}
},
]
}
]
};
Thanks