From 637f0b3ee14ffed369b182526f2c499aff6f4446 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Wed, 3 Jul 2013 14:15:04 +0900 Subject: [PATCH] Fix groups, regions interface --- c3.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 7f3b01e..aee898f 100644 --- a/c3.js +++ b/c3.js @@ -1577,14 +1577,17 @@ } c3.groups = function (groups) { - if (typeof groups !== 'undefined') __data_groups = groups + if (typeof groups === 'undefined') return __data_groups + __data_groups = groups redraw(true, true, true) + return __data_groups } c3.regions = function (regions) { if (typeof regions === 'undefined') return __regions __regions = regions redraw(true, true, true) + return __regions } c3.regions.add = function (regions) { if (typeof regions === 'undefined') return __regions