Last active
April 3, 2018 09:47
-
-
Save amelieykw/4e427fac78ec551fe7d7d8042d94e161 to your computer and use it in GitHub Desktop.
[Highcharts - Title] #Highcharts #title #align
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
Highcharts.chart('container', { | |
chart: { | |
plotBorderWidth: 1, | |
marginLeft: 80 | |
}, | |
xAxis: { | |
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | |
}, | |
title: { | |
text: 'Title aligned left', | |
align: 'left', | |
x: 70 | |
}, | |
series: [{ | |
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] | |
}] | |
}); |
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
Highcharts.chart('container', { | |
chart: { | |
plotBorderWidth: 1, | |
marginLeft: 80 | |
}, | |
xAxis: { | |
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | |
}, | |
title: { | |
text: 'Title aligned left', | |
align: 'right', | |
x: -50 | |
}, | |
series: [{ | |
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] | |
}] | |
}); |
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
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<div id="container" style="height: 400px"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment