Skip to content

Instantly share code, notes, and snippets.

@DGaffney
Created March 1, 2011 19:36
Show Gist options
  • Select an option

  • Save DGaffney/849728 to your computer and use it in GitHub Desktop.

Select an option

Save DGaffney/849728 to your computer and use it in GitHub Desktop.
<script type="text/javascript" language="javascript">
$(function () {
var chart_selector = "#57";
$.plot($(chart_selector), [
{
data: [[1296431999000, 0.404836307023734], [1296518399000, 0.407615597839891], [1296604799000, 0.383347139459691], [1296691199000, 0.366511148398092], [1296777599000, 0.399677487432291], [1296863999000, 0.373120121835142], [1296950399000, 0.376370103920855], [1297036799000, 0.388712657769108], [1297123199000, 0.392372440535301], [1297209599000, 0.338887153957786], [1297295999000, 0.215102006264285], [1297382399000, 0.243113630361647], [1297468799000, 0.276328075801116], [1297555199000, 0.386734482742028], [1297641599000, 0.441959801544221], [1297727999000, 0.427229618821813], [1297814399000, 0.420886374585893], [1297900799000, 0.422994439646389], [1297987199000, 0.443993244836197], [1298073599000, 0.570164450279094], [1298159999000, 0.786386138613861], [1298246399000, 0.729117360235872], [1298332799000, 0.627713955917111], [1298505599000, 0.541585160781084], [1298591999000, 0.496151668630361], [1298764799000, 0.524618119515118], [1298851199000, 0.521643241626794], [1298937599000, 0.494805296765414], ],
label: "CTR",
points: { show: false, lineWidth: 2, fill: false, radius: 1 },
lines: { show: true, lineWidth: 1, fill: true },
bars: { show: false, fill: true, lineWidth: 1, barWidth: 24*60*60*1000 },
color: "#a33",
},
],
{
colors: ['#dad92f','#3333aa','#cf43d0','#f03025','#ffaa33','#33ee33','#9a9a90','#103336','#c9c3fc','#900090','#090cfa','#ff00ff'],
grid: { backgroundColor: "#ffffff", borderWidth: 1, tickColor: "#eee", hoverable: true},
xaxis: { mode: 'time' },
////////////RIGHT UP IN HERE
yaxis: { min: 0, ticks: 7, tickDecimals: 4 },
legend: { position: 'nw' },
});
fix_labels(chart_selector);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment