the code being
var settings = {
showToolTips:true,
source: completeChartDataObject[channelId],
title: ” “,
description: ” “,
xAxis: {
dataField: ‘timestamp’,
type: ‘date’,
gridLines: {
visible: false,
},
baseUnit: ‘second’,
tickMarks: {
visible: true,
color: ‘#888888’
},
valuesOnTicks: true,
labels: { angle: 0, offset: { x: 0, y: 0} },
unitInterval: 445, //autorefreshTime
formatFunction: function (value) {
var returnVal;
returnVal = $.jqx.dataFormat.formatdate(value, “HH:mm:ss”);
return returnVal;
},
},
seriesGroups: [
{
type: ‘column’,
alignEndPointsWithIntervals: true,
valueAxis: {
minValue: 0,
maxValue:yaxisArray[channelId][0],
title: {
text: ‘Errors’
}
},
series: [
{
dataField: ‘value’,
gridLines: { visible: false },
colorFunction: function (value, itemIndex, serie, group) {
return ((value <= 0) ? ‘#00FF00’ : ‘#FF0000’);
}
}
]
}
]
};