Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 58: | Rivi 58: | ||
console.log( data ); | console.log( data ); | ||
− | + | var table = []; | |
+ | |||
+ | for ( var o in data ) { | ||
+ | |||
+ | var row = [ o, data[o].freeze, data[o].freeze, data[o].breakup, data[o].breakup ]; | ||
+ | data.push( row ); | ||
+ | } | ||
+ | |||
+ | var cdata = oogle.visualization.arrayToDataTable([ table ], true ); | ||
+ | |||
+ | var options = { | ||
+ | legend:'none' | ||
+ | }; | ||
+ | |||
+ | var chart = new google.visualization.CandlestickChart(document.getElementById('chart_div')); | ||
+ | |||
+ | chart.draw(data, options); | ||
+ | |||
}); | }); | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ||
− | |||
} | } | ||