Altair: Add chart titles

Created on 5 Sep 2016  路  9Comments  路  Source: altair-viz/altair

Is there a way to add a title to the chart? If not, could there be?

Most helpful comment

All 9 comments

I don't think there is. You could put in a feature request on Vega-Lite; Altair itself doesn't control the addition of new plot elements.

Of course, since the resulting chart is (usually) rendered in HTML, you can always add an HTML title that would appear above the chart. But I agree a built-in title specification would be useful.

Got it, thanks for the reply.

I looked through the Vega-Lite issues; it looks like chart titles are on their radar: https://github.com/vega/vega-lite/issues/431

It looks like title was implemented in Vega-Lite, does it means that is also available in Altair?

It will be once Altair 2.0 is released. I'm working on that at the moment: https://github.com/altair-viz/altair/pull/374

So is this implemented now?

Ah it's a property. Okay thx.

Am 22. Mai 2018 12:23:31 MESZ schrieb afonit notifications@github.com:

@deisi , yes, here is an example that uses it:
https://github.com/altair-viz/altair/blob/4c344e79ebf619e762d5d220caab1b7a58996ac5/altair/vegalite/v2/examples/line_percent.py

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/altair-viz/altair/issues/192#issuecomment-390940928

--
Diese Nachricht wurde von meinem Android-Ger盲t mit K-9 Mail gesendet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pabloinsente picture pabloinsente  路  3Comments

galloramiro picture galloramiro  路  3Comments

mroswell picture mroswell  路  4Comments

maxgerma picture maxgerma  路  3Comments

fischcheng picture fischcheng  路  4Comments