react-native-pathjs-charts
react-native-pathjs-charts copied to clipboard
Question: can graph labels have different styles?
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:
I would like having D, F and H in a different style. Is that possible?
Thanks.
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?
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.