Browse Source

Add classes option for region

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
13912e5b50
  1. 2
      c3.js

2
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)

Loading…
Cancel
Save