Google Charts - Customized Color Candlestick Chart

You are Here:

How to Draw a Customized Color Candlestick Chart?

Please wait google chart is loading...

In this example, we will draw a customized color candlestick chart. Please hover the boxes in the above chart to view particular details.


HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src=""></script> </head> <body> <div id="point"> </div> <script> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Mon', 17, 25, 35, 42], ['Tue', 27, 34, 51, 62], ['Wed', 45, 50, 72, 75], ['Thu', 71, 71, 60, 44], ['Fri', 61, 59, 15, 8] // Treat first row as data as well. ], true); var options = { width: 600, height: 400, legend: 'none', bar: { groupWidth: '100%' // Remove space between bars. }, candlestick: { fallingColor: { strokeWidth: 0, fill: 'red' }, risingColor: { strokeWidth: 0, fill: 'green' } } }; var chart = new google.visualization.CandlestickChart(document.getElementById('point')); chart.draw(data, options); } </script> </body> </html>


Hi Developers, we almost covered 98% of Google Charts Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Google Charts.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author