var myConfig = { "type":"hbar", "title":{ "text":"Timing Visualization" }, "plot":{ }, "scale-x":{ "values":["task1","task2"] }, "scale-y":{ "values":["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct"], "item":{ "font-size":"6px" } }, "series":[ { "values":[10,1], "offset-values":[1,1], "text":"Microsoft", "background-color":"#2ABCF8" }, { "values":[7,3], "offset-values":[2,2], "text":"Oracle", "background-color":"#15A7E3" }, { "values":[6,10], "offset-values":[3,3], "text":"Dell", "background-color":"#0193CF" } ] }; zingchart.render({ id : 'myChart', data : myConfig, height: 400, width: 600 });
<html> <head> <script src= 'https://cdn.zingchart.com/2.1.2/zingchart.min.js'></script> <script> zingchart.MODULESDIR = 'https://cdn.zingchart.com/2.1.2/modules/';</script> </head> <body> <div id='myChart'></div> </body> </html>