Skip to content

Instantly share code, notes, and snippets.

@samarthagarwal
Last active February 5, 2018 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samarthagarwal/53223b705473cf36d81e31805abcea2f to your computer and use it in GitHub Desktop.
Save samarthagarwal/53223b705473cf36d81e31805abcea2f to your computer and use it in GitHub Desktop.
Code for Basic Chart in HighCharts
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]
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment