-
-
Save tomkeays/802985 to your computer and use it in GitHub Desktop.
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
#basicGChart { | |
width: 450px; | |
height: 300px; | |
border: black 1px solid; | |
} |
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
<div id="basicGChart"></div> | |
<script type="text/javascript" src="http://keith-wood.name/js/jquery.gchart.js"></script> |
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
$(document).ready(function() { | |
$('#basicGChart').gchart({type: 'line', maxValue: 40, | |
title: 'Weather for|Brisbane, Australia', titleColor: 'green', | |
backgroundColor: $.gchart.gradient('horizontal', 'ccffff', 'ffffff'), | |
series: [$.gchart.series('Max', [29.1, 28.9, 28.1, 26.3, | |
23.5, 21.2, 20.6, 21.7, 23.8, 25.6, 27.3, 28.6], 'red', 'ffcccc'), | |
$.gchart.series('Min', [20.9, 20.8, 19.5, 16.9, | |
13.8, 10.9, 9.5, 10.0, 12.5, 15.6, 18.0, 19.8], 'green'), | |
$.gchart.series('Rainfall', [157.7, 174.6, 138.5, 90.4, | |
98.8, 71.2, 62.6, 42.7, 34.9, 94.4, 96.5, 126.2], 'blue', 0, 200)], | |
axes: [$.gchart.axis('bottom', ['Jan', 'Feb', 'Mar', 'Apr', | |
'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 'black'), | |
$.gchart.axis('left', 0, 40, 'red', 'right'), | |
$.gchart.axis('left', ['C'], [50], 'red', 'right'), | |
$.gchart.axis('right', 0, 200, 50, 'blue', 'left'), | |
$.gchart.axis('right', ['mm'], [50], 'blue', 'left')], | |
legend: 'right' | |
}); | |
}); |
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
name: My Test Fiddle | |
description: Lorem Ipsum | |
authors: | |
- Dan Diebolt | |
- Tom Keays |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment