Hello everyone I am trying to chang font size on the labels on mobiles only because I have a pie and on mobile the label size too big and looks wonky. My current setting for the style of the data labels is this
style: {
fontSize: "15px",
fontFamily: "DM sans",
fontWeight: "light",
},
formatter(val, opts) {
let labelIndex = [50, 15, 5, 5, 2.5, 12.5, 10];
const name = opts.w.globals.labels[opts.seriesIndex];
return [name, labelIndex[opts.seriesIndex] + "%"];
},
},
I know I should add the responsive part somewhere I tried different scooping and place to stick it but works nowhere wondering if im doing something wrong
responsive: [{
breakpoint: 500,
options: {
style: {
fontSize: "10px",
fontFamily: "DM sans",
fontWeight: "light",
},
},
}],
```