mohr...@zoho.com
unread,Aug 16, 2011, 9:23:52 AM8/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi All,
The candlestick API is not accepting colours as mentioned in the API
reference. e.g. the following code (from the visualisation playground)
does not give different coloured bars as expected from the API. Is
there something I am missing?
function drawVisualization() {
// Populate the data table.
var dataTable = google.visualization.arrayToDataTable([
['Mon',20,28,38,45],
['Tues',31,38,55,66],
['Wed',50,55,77,80],
['Thurs',77,77,66,50],
['Fri',68,66,22,15],
], true);
// Draw the chart.
var chart = new
google.visualization.CandlestickChart(document.getElementById('visualization'));
chart.draw(dataTable, {legend:'none', width:600, height:400},
{series: {0:{color: 'black'}, 3:{color: 'red'}}});
}
thanks
Mohit