Can help me to find out where is the input data for axis Y? It is randomly generated values. I want to replace it with my own array: 1,3,254,46,2,35,243 or 11,13,254,146,12,35,243. I know axis-X is 1 to 10 (month) - I will keyin smarty var for axis X.
Code:function d(k) { var n = []; for(var e = 0; e <= 10; e += 1) { n.push([e, parseInt(Math.random() * 30)]) } var m = []; for(var e = 0; e <= 10; e += 1) { m.push([e, parseInt(Math.random() * 30)]) } var j = []; for(var e = 0; e <= 10; e += 1) { j.push([e, parseInt(Math.random() * 30)]) } var l = { series: { stack: true, bars: { show: true, barWidth: 0.4 } }, grid: { borderWidth: 0 } }; a.plot(k, [{ data: n, color: "#E15656" }, { data: m, color: "#A6D037" }, { data: j, color: "#61A5E4" }], l) }


Reply With Quote
Bookmarks