Altair Posted September 17, 2020 Report Share Posted September 17, 2020 Hi Is there a way of modifying data labels in a pie chart? I want to have a red glow on the text 2 and 4 or change font size. Quote Link to comment Share on other sites More sharing options...
0 Nuke354 Posted September 17, 2020 Report Share Posted September 17, 2020 You can use CSS to style it: You will put this on your header. <style> tspan.highcharts-text-outline { stroke: red !important; } </style> You can also try to modify it via JS using HighChart API Put this on your header: <script src="https://code.jquery.com/jquery-3.2.1.js"></script> <script src="https://code.jquery.com/jquery-migrate-3.0.0.js"></script> Footer: <script type="text/javascript"> jQuery(window).load(function() { Highcharts.charts[0].update({ series: { dataLabels: { style: { color: "black", fontSize: 20, textOutline: "none" } } } } ); }); </script> You may refer to this link for more information: https://api.highcharts.com/highcharts/series.pie.dataLabels.style Quote Link to comment Share on other sites More sharing options...
Question
Altair
Hi Is there a way of modifying data labels in a pie chart?

I want to have a red glow on the text 2 and 4 or change font size.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.