Loading C3.js into an HTML file -


i having alot of trouble getting c3 work in web page. code graphing right, wont load , guessing due me not having right script src. have starter file using c3, or code need load in. or there cdn reference?

here quick starter file

<!doctype html> <html lang="en"> <head>     <title>c3</title>     <meta charset="utf-8" />     <link href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.css" rel="stylesheet" />     <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.js"></script> </head> <body>     <div id="chart"></div>     <script>         var chart = c3.generate({             data: {                 columns: [                     ['data1', 30, 200, 100, 400, 150, 250],                     ['data2', 50, 20, 10, 40, 15, 25]                 ]             }         });     </script> </body> </html> 

but recommend, getting stable versions respective sites or github projects.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -