I am working on Google Visulization charts .
I am trying to draw candlestick charts with sample data , the issue i am
facing is that the falling color and raising color are being represented in
single color only
This is my code
var mydata =
[['13-Oct',1109.95,1132,1097.95,1113.45],['14-Oct',1113.45,1117,1095.6,1101.15],['15-Oct',1116,1132,1092.1,1129.2],['16-Oct',1130,1182.4,1130,1170.3],['19-Oct',1174,1182.2,1144.5,1162.15]];
function drawChart() {
var data = google.visualization.arrayToDataTable(mydata, true);
var options = {
legend:'none',
colors:['red','brown'],
candlestick: {
fallingColor:{ fill: "orange", strokeWidth:0.5,stroke:'black'},
risingColor:{fill:"yellowgreen",strokeWidth:0.5,stroke:'black'}}
};
var chart = new
google.visualization.CandlestickChart(document.getElementById('chart_div'));
chart.draw(data, options);}
and this is my fiddle
http://jsfiddle.net/pdmpb9w1/7/
Could you please let me know how to resolve this issue ??
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/56c6eda7-b9ea-414b-a608-4c97f04b6780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.