Does Vega Support Text in HTML or Markdown Format?

I want to display text containing links using Vega and would also want the ability to style those texts (headlines, emphasis, italics, dropdown).

Can I style text in Vega using the HTML or Markdown format?

If not, are there comparable alternatives supported by the Vega library?

This is a link to my code.

>Solution :

There is no markdown but you can style the text using fontStyle for italics or fontWeight for bold. You can also assign a href to the whole mark but not individual text elements within it. Details are all here: https://vega.github.io/vega/docs/marks/text/

Leave a Reply