Sha256: 5094a83a17c47946f83aa04130d3160b5e61c7c225dc0ed91c920d6f1d9f2b3a
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 KB
Contents
$(function () { var d1, data, chartOptions; d1 = [ [1262304000000, 5], [1264982400000, 200], [1267401600000, 1605], [1270080000000, 1129], [1272672000000, 1163], [1275350400000, 1905], [1277942400000, 2002], [1280620800000, 2917], [1283299200000, 2700], [1285891200000, 2700], [1288569600000, 2100], [1291161600000, 1700] ]; data = [{ label: "Total visitors", data: d1, color: '#222' }]; chartOptions = { xaxis: { min: (new Date(2009, 12, 1)).getTime(), max: (new Date(2010, 11, 2)).getTime(), mode: "time", tickSize: [2, "month"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], tickLength: 0 }, yaxis: { }, series: { lines: { show: true, fill: true, fillColor: { colors: [ { opacity: 0.5 }, { opacity: 0.2 } ] }, lineWidth: 1.5 }, points: { show: true, radius: 2.5, fill: true, fillColor: "#ffffff", lineWidth: 1.1 } }, grid: { hoverable: true, clickable: false, borderWidth: 0 }, legend: { show: false }, tooltip: true, tooltipOpts: { content: '%s: %y' } }; var holder = $('#chart2'); if (holder.length) { $.plot(holder, data, chartOptions ); } });
Version data entries
4 entries across 3 versions & 1 rubygems