this is relative to this thread
http://www.kendoui.com/forums/kendo-ui-dataviz/chart/how-to-customise-color-of-bars-in-stock-chart.aspx#boMy966aG2OF1P8AAFTdxQ
i wasnt sure if you saw my response or not
so im repoosting
here is my stock chart code
here is a portion of the data as outputted by the console:
however just by adding the colors im now getting a js err:
Uncaught TypeError: Object [object global] has no method 'forEach'
without all the color stuff the chart works great
but i really want custom colors
can you give me ideas why this is happening
thanks!
http://www.kendoui.com/forums/kendo-ui-dataviz/chart/how-to-customise-color-of-bars-in-stock-chart.aspx#boMy966aG2OF1P8AAFTdxQ
i wasnt sure if you saw my response or not
so im repoosting
here is my stock chart code
$J($chartD).kendoStockChart({ dataSource: wData, series: [{ type: "candlestick", openField: "open", closeField: "close", highField: "high", lowField: "low", categoryField: "cat", colorField: "color", notes:{ line: { width: 0, length: 0 }, label: { font: "bold 9px Open Sans, sans-serif" }, icon: { border: { width: 0 } } }, tooltip:{ format: "{4}:<br /> {0:n0} -> {3:n0}" } }], navigator:{ visible: false }, categoryAxis:{ categories: cats, type: "category", labels: { font: "bold 9px Open Sans, sans-serif", rotation: 90, step: 1, skip: 0 } }, valueAxis: { labels: { format: "N0" } }});[Object, Object, Object, Object, Object, Object, Object, Object]0: Objectcat: "2009"close: 6831color: "#75B5CD"high: 6831low: 0noteText: 6831open: 0__proto__: Object1: Objectcat: "Direct Hire"close: 9185color: "#4E503F"high: 9185low: 6831noteText: 2354open: 6831however just by adding the colors im now getting a js err:
Uncaught TypeError: Object [object global] has no method 'forEach'
without all the color stuff the chart works great
but i really want custom colors
can you give me ideas why this is happening
thanks!