How to change the fontWeight?
See original GitHub issueHello, I’m currently creating a Radar chart as seen below. For the radar labels, the fontSize, fontColor and fontFamily are all being set correctly but fontWeight is not… Any idea how to set fontWeight for the radar labels? Thanks
<Radar
data={chartData}
options={{
legend: false,
gridLines: {
display: false,
},
scale: {
angleLines: {
color: 'white'
},
gridLines: {
color: 'white'
},
pointLabels :{
fontColor: '#333',
fontFamily: "'Raleway', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontSize: 12,
fontWeight: 600,
},
ticks: {
suggestedMin: 0,
suggestedMax: 10,
display: false,
maxTicksLimit: 5
}
}
}}
/>
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
font-weight - CSS: Cascading Style Sheets - MDN Web Docs
The font-weight CSS property sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently ...
Read more >CSS font-weight property - W3Schools
Set different font weight for three paragraphs: p.normal { ... The font-weight property sets how thick or thin characters in text should be...
Read more >How to Change Font Weight of HTML Element in JavaScript?
In the following example, we will change the font weight of HTML Element with id "myElement" to "600" , in JavaScript, using element.style.fontWeight...
Read more >How to Change Font with HTML - freeCodeCamp
You can use font-weight to change the lightness or boldness of text, then give it a value such as normal , lighter ,...
Read more >How to change font-weight of a text using JavaScript
In this article, we will set the font-weight of a text dynamically using JavaScript. Ti change the font weight dynamically, we use HTML...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@bhellman1 try using
fontStyleinstead offontWeight.These docs definitely need to be updated. Passing
boldhere works and is just what I needed!