1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 05:24:38 +02:00

Updated the log plugin. Updated the bootstrap preview.

This commit is contained in:
Cameron
2012-12-04 21:02:47 -08:00
parent f46d3a34cc
commit 956d0b2abd
8 changed files with 181 additions and 32 deletions

View File

@@ -474,6 +474,8 @@ function AwesomeChart(canvasElementId){
context.rotate(Math.PI/2);
context.translate(-this.width/2, -this.height/2);
//Calculate bar size:
var n = this.data.length;
@@ -562,6 +564,8 @@ function AwesomeChart(canvasElementId){
context.restore();
context.stroke();
//Draw the label:
context.font = this.labelFontStyle + ' ' + this.labelFontHeight + 'px '+ this.labelFont;
@@ -606,6 +610,8 @@ function AwesomeChart(canvasElementId){
x = x + barWidth + this.barHGap;
}
context.restore();
}
@@ -687,6 +693,9 @@ function AwesomeChart(canvasElementId){
changeOfMarginBottom = belowZeroMaxBarHeight / numFrames;
changeOfMarginTop = (chartAreaHeight - belowZeroMaxBarHeight) / numFrames;
var updateVerticalBarChart = function() {
if(currentFrame++ < numFrames) {
@@ -724,6 +733,9 @@ function AwesomeChart(canvasElementId){
}
}
updateVerticalBarChart();
}