react-d3 / react-d3-basic

Basic d3 charts in React.js, only include: line, bar, pie, scatter, area charts.
http://reactd3.org/docs/basic
221 stars 117 forks source link

Labels are gone (at least in BarGroup) #25

Closed asaf closed 8 years ago

asaf commented 8 years ago

Hey,

No matter what I tried, labels are not shown, I tried to clone the repo as is, and hit the example/bar_group.html, same result,

Any clue? Thanks.

chilijung commented 8 years ago

https://github.com/react-d3/react-d3-example/blob/f9b5a23efc0847ed200f37ff702e60ffb668924a/simple/bar/bar.js#L27-L39

here is a demo.

You have to set lavels via props xLabel, yLabel