experience-experiments / react-easy-chart

[DEPRECATED] - Easy to use React Charting library
http://experience-experiments.github.io/react-easy-chart
BSD 3-Clause "New" or "Revised" License
142 stars 55 forks source link

no Labels on LineChart #118

Open yernandus opened 6 years ago

yernandus commented 6 years ago

I copy pasted the example that is given in documentation. But no labels are shown

redrobotdev commented 6 years ago

the label is added to the DOM, but it's not visible because it's white. Adding a style .label { fill: black } would adjust the color correctly.

alekspickle commented 6 years ago

@ababakanian any tips how to do this in React e.g. <LineChart style={{fill: 'black'}} (???) axes axisLabels={{ y: 'My Level' }} data={[moodData]} dataPoints grid height={chart.height} interpolate={'cardinal'} lineColors={['#ff6600']} width={chart.width} xType={'text'} yDomainRange={[0, 10]} /> and my y axis text is obviously white

abarnes26 commented 6 years ago

@alexgnatrow

style={{ '.label': { fill: 'black' } }}
sumer9999 commented 5 years ago

Adding style worked well for me