Commit 17de192f authored by Administrator's avatar Administrator

Merge branch 'mat-charts'

Intégration des modifs de Mathieu pour le chart.
parents d0193225 99a92b14
......@@ -545,6 +545,15 @@ var Graph = function(container, width, height) {
};
(function() {
if (typeof(container) != 'object' || !container.style) {
console.error('The first parameter of the Graph class constructor should be a valid DOM object.');
}
if (!width) {
width = container.style.width;
}
if (!height) {
height = container.style.height;
}
var canvas = document.createElement('canvas');
var canvasContext = canvas.getContext && canvas.getContext('2d');
if (!!canvasContext) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment