Xiphias
Xiphias

Reputation: 4716

How can I change the google gantt chart font?

When I start the first jsfiddle from the Google Gantt Chart Documentation, I get a serif font.

How can I switch to sans-serif as Google does it on its page?

I discovered gantt.labelStyle, but that only sets the labels' style but not the tooltip font when hovering over items.

Upvotes: 0

Views: 1502

Answers (1)

Matt Rice
Matt Rice

Reputation: 696

The quick and dirty way would be to add this CSS

text {
  font-family: sans-serif !important;
}

This will style all text nodes with a sans-serif font.

Updated Fiddle

Upvotes: 2

Related Questions