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: Object
cat:
"2009"
close: 6831
color:
"#75B5CD"
high: 6831
low: 0
noteText: 6831
open: 0
__proto__: Object
1: Object
cat:
"Direct Hire"
close: 9185
color:
"#4E503F"
high: 9185
low: 6831
noteText: 2354
open: 6831
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!