Last active
February 5, 2018 09:36
-
-
Save samarthagarwal/53223b705473cf36d81e31805abcea2f to your computer and use it in GitHub Desktop.
Code for Basic Chart in HighCharts
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
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