question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to change the fontWeight?

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
etimbergcommented, Oct 15, 2017

@bhellman1 try using fontStyle instead of fontWeight.

2reactions
rwwagner90commented, Aug 10, 2020

These docs definitely need to be updated. Passing bold here works and is just what I needed!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found