Skip to content

Instantly share code, notes, and snippets.

@groves
Created September 9, 2009 16:20
Show Gist options
  • Save groves/183859 to your computer and use it in GitHub Desktop.
Save groves/183859 to your computer and use it in GitHub Desktop.
var data = [{
"color": "#92BA34",
"data": [[1251331200000, 15.0]]
},
{
"color": "#92BA34",
"data": [[1251417600000, 20.0]]
},
{
"color": "#3492BA",
"data": [[1251504000000, 25.0]]
},
{
"color": "#3492BA",
"data": [[1251590400000, 30.0]]
},
{
"color": "#3492BA",
"data": [[1251676800000, 35.0]]
},
{
"color": "#3492BA",
"data": [[1251763200000, 40.0]]
},
{
"color": "#92BA34",
"data": [[1251849600000, 45.0]]
}];
$.plot($('#bargraph'), data, {
xaxis: { mode: "time", timeformat: "%m/%d" },
bars: {
fill: true,
fillColor: "#92BA34",
show: true
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment