DyGraphs BoxPlot
by Toni
HTML
<h1>Body</h1>
<div id="div_g"></div>
CSS
#div_g { position: absolute; left: 20px; right: 100px; top: 100px; bottom: 10px; }
JavaScript
/*! @license Copyright 2011 Dan Vanderkam ([email protected]) MIT-licensed (http://opensource.org/licenses/MIT) */
Date.ext = {};
Date.ext.util = {};
Date.ext.util.xPad = function(a, c, b) {
if (typeof(b) == "undefined") {
b = 10
}
for (; parseInt(a, 10) < b && b > 1; b /= 10) {
a = c.toString() + a
}
return a.toString()
};
Date.prototype.locale = "en-GB";
if (document.getElementsByTagName("html") && document.getElementsByTagName("html")[0].lang) {
Date.prototype.locale = document.getElementsByTagName("html")[0].lang
}
Date.ext.locales = {};
Date.ext.locales.en = {
a: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
A: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
b: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jui", "Aou", "Sep", "Oct", "Nov", "Dec"],
B: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
c: "%a %d %b %Y %T %Z",
p: ["AM", "PM"],
P: ["am", "pm"],
x: "%d/%m/%y",
X: "%T"
};
Date.ext.locales["en-US"] = Date.ext.locales.en;
Date.ext.locales["en-US"].c = "%a %d %b %Y %r %Z";
Date.ext.locales["en-US"].x = "%D";
Date.ext.locales["en-US"].X = "%r";
Date.ext.locales["en-GB"] = Date.ext.locales.en;
Date.ext.locales["en-AU"] = Date.ext.locales["en-GB"];
Date.ext.formats = {
a: function(a) {
return Date.ext.locales[a.locale].a[a.getDay()]
},
A: function(a) {
return Date.ext.locales[a.locale].A[a.getDay()]
},
b: function(a) {
return Date.ext.locales[a.locale].b[a.getMonth()]
},
B: function(a) {
return Date.ext.locales[a.locale].B[a.getMonth()]
},
c: "toLocaleString",
C: function(a) {
return Date.ext.util.xPad(parseInt(a.getFullYear() / 100, 10), 0)
},
d: ["getDate", "0"],
e: ["getDate", " "],
g: function(a) {
return Date.ext.util.xPad(parseInt(Date.ext.util.G(a) / 100, 10), 0)
},
G: function(c) {
var e = c.getFullYear();
var b = parseInt(Date.ext.formats.V(c), 10);
var a =...