f5 / unovis

Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript
https://unovis.dev
Apache License 2.0
2.27k stars 44 forks source link

How to customize font size, weight, etc. in VisTooltip? #451

Closed fromaline closed 1 week ago

fromaline commented 1 month ago

Hey! First of all, thanks for the project! It's awesome!

One minor issue: I can't figure out how to customize font size, weight, etc. inside VisTooltip. Is there a way to do it?

lee00678 commented 1 month ago

Hi @fromaline, you should be able to access all that with CSS properties. See attributes. You can also use things like strong when you create your tooltip div. See here

rokotyan commented 1 month ago

@fromaline check out the CSS variables section: https://unovis.dev/docs/auxiliary/Tooltip/#css-variables.

Alternatively, you can just pass your styles within the tooltip content: wrap it into a "div" and provide a class name or use the styles attribute.

fromaline commented 1 week ago

@lee00678, @rokotyan, got it! Thank you!