react-native-pathjs-charts icon indicating copy to clipboard operation
react-native-pathjs-charts copied to clipboard

Question: can graph labels have different styles?

Open samanthacampisi opened this issue 8 years ago • 2 comments
trafficstars

Hello,

I know this may be similar to https://github.com/capitalone/react-native-pathjs-charts/issues/51 and https://github.com/capitalone/react-native-pathjs-charts/issues/5 but I wanted to know if it's possible to have different style for the labels. I also didn't see something of the sort in the docs.

I'm currently working with a Radar graph and it works quite well. Right now it's something like this:

screen shot 2017-08-07 at 11 58 58

I would like having D, F and H in a different style. Is that possible?

Thanks.

samanthacampisi avatar Aug 07 '17 10:08 samanthacampisi

Sorry for the extreme delay in the response and it's possible I'm misunderstanding something, but all the charts have a label property in the options to change the style of the label. In the example app (and in the docs) for the radar chart, I see this:

label: {
      fontFamily: 'Arial',
      fontSize: 14,
      fontWeight: true,
      fill: '#34495E'
    }

Are you looking for some customization beyond this?

marzolfb avatar Sep 10 '17 04:09 marzolfb

No problem. Thanks for responding.

I'm still looking for a solution to this. I'm indeed looking for a deeper level of customization. I'm currently using this label config:

label: { fontFamily: 'Arial', fontSize: 12, fill: 'white' }

But this applies to EVERY label on the graph. I was wondering if I could set specific style for one of the labels in particular.

samanthacampisi avatar Sep 12 '17 15:09 samanthacampisi