Javascript examples for Google Chart:Chart Configuration
Create Candle stick Chart via Google Visualization Charts
<html> <head> <title>Candlestick Chart Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['corechart']}]}"></script> <div id="chart_div" style="width: 900px; height: 500px;"></div> <script type="text/javascript"> var data_value = [// www . j a v a 2s. c o m [ "2011-08-01", 136.65, 136.96, 134.15, 136.49 ], [ "2011-08-02", 135.26, 135.95, 131.50, 131.85 ], [ "2011-08-05", 132.90, 135.27, 128.30, 135.25 ] ]; google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable( data_value , true); var options = { legend:'none' }; var chart = new google.visualization.CandlestickChart(document.getElementById('chart_div')); chart.draw(data, options); } </script> </body> </html>