I've made this bar chart http://imageshack.com/a/img901/7186/cnOfhh.png, and the code for it is:
//compute & mark average color for (var i = 0; i = zdata[i].TimePlayed) { zdata[i]['Color'] = 'green'; } else { zdata[i]['Color'] = 'red'; } } //localsitelist var element = { rt: 'D', Id: rid, courselist: clist, selcourseId: selCid, selcourse: selCname, cartlist: wData, selSiteId: lsid, selsite: sitename, dataList: zdata }; //, carts: _mVM.availableCarts()}; // //if rid exists, is update, else its new var found = -1; for (var k = 0; k
and the BarChart function:
function BarChart(id, data) { $.plot(id, data, { series: { bars: { show: true, barWidth: 0.6, align: "center" } }, stack: true, xaxis: { mode: "categories", tickLength: 0 } }); }
The problem is that I can't manage to get something like this https://imageshack.us/i/expGGpOkp, the little line should be zdata[i].TargetTime
. I've tried something using stacked bar chart idea but the result was way different... What am I doing wrong? Can anyone help me with a suggestion to start with to get the same bar chart like in the last image?