Commit d4f93a28 authored by David Schnur's avatar David Schnur

Allow 'false' to be provided as a stack option.

This resolves #18, but without catching zero, which is a valid key.
parent be9f60d2
...@@ -15,7 +15,7 @@ key (which can be any number or string or just "true"). To specify the default ...@@ -15,7 +15,7 @@ key (which can be any number or string or just "true"). To specify the default
stack, you can set the stack option like this: stack, you can set the stack option like this:
series: { series: {
stack: null or true or key (number/string) stack: null/false, true, or a key (number/string)
} }
You can also specify it for a single series, like this: You can also specify it for a single series, like this:
...@@ -55,7 +55,7 @@ charts or filled areas). ...@@ -55,7 +55,7 @@ charts or filled areas).
} }
function stackData(plot, s, datapoints) { function stackData(plot, s, datapoints) {
if (s.stack == null) if (s.stack == null || s.stack === false)
return; return;
var other = findMatchingSeries(s, plot.getData()); var other = findMatchingSeries(s, plot.getData());
......
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