= 0) {
+ context.textBaseline = 'bottom';
+ context.fillText(series, x + barWidth / 2, barBottomY
+ - barHeight - this.labelMargin, barWidth);
+ } else {
+ context.textBaseline = 'top';
+ context.fillText(series, x + barWidth / 2, barBottomY
+ - barHeight + this.labelMargin, barWidth);
+ }
+
+ // Draw the data value:
+
+ context.font = this.dataValueFontStyle + ' '
+ + this.dataValueFontHeight + 'px ' + this.dataValueFont;
+ context.fillStyle = this.dataValueFillStyle;
+ context.textAlign = 'center';
+ if (di >= 0) {
+ context.textBaseline = 'bottom';
+ context.fillText(di, x + barWidth / 2, barBottomY
+ - barHeight - this.labelMargin
+ - this.dataValueMargin, barWidth);
+ } else {
+ context.textBaseline = 'top';
+ context.fillText(di, x + barWidth / 2, barBottomY
+ - barHeight + this.labelMargin
+ + this.dataValueMargin, barWidth);
+ }
+
+ // Update x:
+
+ x += barWidth + this.barHGap;
+ }
+ x += this.seriesHGap;
+
+ }
+ };
}
+AwesomeHorizontalBarChart.prototype = Object.create(AwesomeBarChart.prototype);
diff --git a/demo-animated.html b/demo-animated.html
deleted file mode 100644
index efea5e4..0000000
--- a/demo-animated.html
+++ /dev/null
@@ -1,311 +0,0 @@
-
-
-
- AwesomeChartJS demo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo-multicolor.html b/demo-multicolor.html
deleted file mode 100644
index dadc064..0000000
--- a/demo-multicolor.html
+++ /dev/null
@@ -1,292 +0,0 @@
-
-
-
- AwesomeChartJS demo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo.html b/demo.html
index 90abec4..9719ee1 100644
--- a/demo.html
+++ b/demo.html
@@ -46,221 +46,30 @@
-
-
-
-
-
-
+
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
-
- Your web-browser does not support the HTML 5 canvas element.
-
-
-
-
-
-
+