diff --git a/examples/index.html b/examples/index.html
index 5019dca..eeeac35 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -90,6 +90,7 @@ li:hover {
Pie Chart
Scatter Chart
Stacked Area Chart
+ Multibar Chart
Polylinear Scale Line Chart
Real Time Chart
diff --git a/examples/sparklinePlus.html b/examples/sparklinePlus.html
index b1d23e6..f04e6e9 100644
--- a/examples/sparklinePlus.html
+++ b/examples/sparklinePlus.html
@@ -52,7 +52,7 @@ function defaultChartConfig(containerId, data) {
defaultChartConfig("#chart1",sine());
defaultChartConfig("#chart2", volatileChart(130.0, 0.02));
-defaultChartConfig("#chart3", volatileChart(25.0, 0.09));
+defaultChartConfig("#chart3", volatileChart(25.0, 0.09,30));
function sine() {
@@ -66,10 +66,11 @@ function sine() {
return sin;
}
-function volatileChart(startPrice, volatility) {
+function volatileChart(startPrice, volatility, numPoints) {
var rval = [];
var now =+new Date();
- for(var i = 1; i < 100; i++) {
+ numPoints = numPoints || 100;
+ for(var i = 1; i < numPoints; i++) {
rval.push({x: now + i * 1000 * 60 * 60 * 24, y: startPrice});
var rnd = Math.random();
diff --git a/test/multiBarChartTest.html b/test/multiBarChartTest.html
new file mode 100644
index 0000000..6242ff8
--- /dev/null
+++ b/test/multiBarChartTest.html
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+ Multibar chart test cases - feel free to add more tests
+
+
+ Normal chart, with transition delay, and bar color set.
+
+
+
+ Normal chart, no transitionDuration or delay, no bar color set.
+
+
+
+ Chart with single series, no group spacing.
+
+
+
+ Chart with 18 series, 7 data points per series.
+
+
+
+ Chart with 1 data point
+
+
+
+ Chart with 2 data points
+
+
+
+ Chart with 0 data points
+
+
+
+
+
+
+
+
+
+
+
+