From 13912e5b50de0dc4cbb50fca88d7a6f7b6992219 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Wed, 3 Jul 2013 15:50:44 +0900 Subject: [PATCH] Add classes option for region --- c3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 21ab1b4..817234b 100644 --- a/c3.js +++ b/c3.js @@ -489,7 +489,7 @@ function classShape (d,i) { return "__shape __shape-" + i } function classCircle (d,i) { return classShape(d,i) + " __circle __circle-" + i } function classBar (d,i) { return classShape(d,i) + " __bar __bar-" + i } - function classRegion (d,i) { return 'region region-' + i + ("id" in d ? ' region-' + d.id : '')} + function classRegion (d,i) { return 'region region-' + i + ' ' + ("id" in d ? 'region-' + d.id : '') + ' ' + ('classes' in d ? [].concat(d.classes).join(' ') : '')} function xx (d) { return x(d.x)