Created
April 10, 2017 19:58
-
-
Save easherma/2bdb47a7455d5bc79f3fc17e6a4fa6af to your computer and use it in GitHub Desktop.
example vuechart
This file contains 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
<script> | |
import Highcharts from 'highcharts' | |
import jquery from 'jquery' | |
export default { | |
data () { | |
return { | |
data: [ | |
['DE.SH', 728], | |
['DE.BE', 710], | |
['DE.MV', 963], | |
['DE.HB', 541], | |
['DE.HH', 622], | |
['DE.RP', 866], | |
['DE.SL', 398], | |
['DE.BY', 785], | |
['DE.SN', 223], | |
['DE.ST', 605], | |
['DE.NW', 237], | |
['DE.BW', 157], | |
['DE.HE', 134], | |
['DE.NI', 136], | |
['DE.TH', 704], | |
['DE.', 361] | |
] | |
} | |
}, | |
props: ['mapId'], | |
mounted () { | |
jquery(function () { | |
var myChart = Highcharts.chart('container', { | |
chart: { | |
type: 'bar' | |
}, | |
title: { | |
text: 'Fruit Consumption' | |
}, | |
xAxis: { | |
categories: ['Apples', 'Bananas', 'Oranges'] | |
}, | |
yAxis: { | |
title: { | |
text: 'Fruit eaten' | |
} | |
}, | |
series: [{ | |
name: 'Jane', | |
data: [1, 0, 4] | |
}, { | |
name: 'John', | |
data: [5, 7, 3] | |
}] | |
}); | |
}); | |
} | |
} | |
</script> | |
<style lang="scss"> | |
</style> | |
<template> | |
<!--<div class="Map" style="border: 1px solid black; width: 700px; float: left"></div>--> | |
<div id="container" style="width:300px%; height:400px;"> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment