0

I have created a plot using ggplotly() and really like the font used in it's title.

enter image description here

I have tried to figure out the font used in it by inspect element but nothing turns out to be same.

enter image description here

So I have knit the document & applied inspect element on it and could see these fonts and tried all one by one but nothing looks same: "Helvetica Neue",Helvetica,Arial,sans-serif;

How can I replicate the font in my other charts or non plotly charts ?

ViSa
  • 1,563
  • 8
  • 30
  • search for the element id or class in the main css to check if it's using any font – Burham B. Soliman Jan 09 '21 at 13:01
  • This looks like a "serif" font. – stefan Jan 09 '21 at 13:07
  • @BurhamB.Soliman I am not sure how to do that but I have moved to below lines & have found few more fonts: `"Open Sans", verdana, arial, sans-serif;` under `.plotly div` so will try that – ViSa Jan 09 '21 at 13:11
  • @stefan even I thought so and tried `plot.title = element_text(face = "plain", family = "Open Sans", size = 13)` but this is not the same. – ViSa Jan 09 '21 at 13:13
  • 1
    Have you tried `family="serif"`? – stefan Jan 09 '21 at 13:20
  • thanks @stefan yes `family= "serif"` worked. I was trying "sans serif", "sans-serif", "Open serif" which were not working. – ViSa Jan 09 '21 at 13:23

0 Answers0