Last active
February 5, 2018 14:17
-
-
Save apertureless/29ed79603961eaf5d358fc3cdc7ccbbb to your computer and use it in GitHub Desktop.
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
| import {Line} from 'vue-chartjs' | |
| export default { | |
| extends: Line, | |
| mounted () { | |
| this.renderChart({ | |
| labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], | |
| datasets: [ | |
| { | |
| label: 'Data One', | |
| backgroundColor: '#FC2525', | |
| data: [40, 39, 10, 40, 39, 80, 40] | |
| },{ | |
| label: 'Data Two', | |
| backgroundColor: '#05CBE1', | |
| data: [60, 55, 32, 10, 2, 12, 53] | |
| } | |
| ] | |
| }, {responsive: true, maintainAspectRatio: false}) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment