Created
November 29, 2014 11:53
-
-
Save kimmobrunfeldt/327483f7a58f00805330 to your computer and use it in GitHub Desktop.
Chartist.js example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>Chartist</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" href="https://rawgit.com/gionkunz/chartist-js/master/dist/chartist.min.css"> | |
| <style> | |
| #chart { | |
| height: 300px; | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="ct-chart" id="chart"></div> | |
| <script type="text/javascript" src="https://rawgit.com/gionkunz/chartist-js/master/dist/chartist.js"></script> | |
| <script> | |
| new Chartist.Line('#chart', { | |
| labels: [1, 2, 3, 4, 5, 6, 7, 8], | |
| series: [ | |
| [5, 9, 7, 8, 5, 3, 5, 4] | |
| ] | |
| }, { | |
| low: 0, | |
| showArea: true | |
| }); | |
| </script> | |
| </body> | |
| </html> |
Works! Thank you!
Great Thanks. Good complete example to get started with Chartist. Thanks!
|Nice and simple !| Thanks
Thank you so much!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you for your source