Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmarti/meteor-highcharts
https://github.com/elmarti/meteor-highcharts
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elmarti/meteor-highcharts
- Owner: elmarti
- Created: 2016-03-15T20:36:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-17T19:30:18.000Z (almost 9 years ago)
- Last Synced: 2024-11-02T20:42:19.326Z (about 2 months ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Highcharts packaged and Meteorized ##
You can use the normal Highcharts system, or use the meteorized version below:
## Simply include the Highcharts template and pass it a custom helper ##
{{>Highcharts getHighchartsData}}
## Set the rerender and element data in the meteorSettings object ##
Meteor Settings is optional and if you do not specify and id, a random one will be generated.getHighchartsData: function() {
return {
chart: {
polar: true,
type: 'line',
backgroundColor: 'transparent',
className: "daveGraph",
spacingBottom: 0,
spacingLeft: 0,
spacingRight: 0,
spacingTop: 0
},
credits: {
enabled: false
},
pane: {
size: '65%'
},
title: {
text: ""
},
xAxis: {
categories: ["cat1", "cat2", "cat3", "cat4"],
lineWidth: 0
},
yAxis: {
gridLineInterpolation: 'polygon',
lineWidth: 0,
min: 0
},
series: [{
showInLegend: false,
name: "",
data: [12, 13, 254, 24]
}],
meteorSettings: {
responsive: true,
width: "123px",
height: "123px",
id: "david"
}
}
}