question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source line to attribute the origin of a chart's data

See original GitHub issue

Does Vega currently support a “source” directive to package metadata about the origin of the data with the chart?

In many charts published today this is reflected in a small, single line of text beneath the plot. An example can been see at the bottom of the chart below, published this month by The New York Times. It reads simply, Source: World Inequality Database.

screenshot from 2018-11-24 09-20-52

I’d like to include similar lines with charts I make via Vega and Altair. Is there currently a means to do this, or is it something that would need to be added to the grammar?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
palewirecommented, Dec 15, 2018

I don’t know if I have a strong opinion on the distinction but a news graphic typically comes with these metadata:

  • Headline (Covered now by title)
  • Deck headline (A short sentence or two under the headline that describes the graphic. This to me seems most like a caption)
  • Source line (fine print under the graphic listing origins of data)
  • Footnote (optional fine print under the graphic listing any caveats in the data)
  • Attribution: Footnote under the data listing the author(s)

On Sat, Dec 15, 2018, 9:02 AM Dominik Moritz <notifications@github.com wrote:

Instead of source, we could have a general caption property (like ggplot).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vega/vega/issues/1458#issuecomment-447582602, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAnCfK40JPoNKPSYnRdP07W3egwC3ePks5u5SsygaJpZM4Yxgw8 .

0reactions
ghingcommented, May 6, 2022

I know this was partially implemented in #1781, which added support for subtitles, but I would still like to see the ability to specify text below the chart added.

I agree with this comment in terms of the semantics for charts that I typically make.

However, even a single below-the-plot text element, similar to the caption argument to ggplot2’s labs() function would be better than nothing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Line Charts | Tutorial by Chartio
Line charts are a fundamental chart type generally used to show change in values across time. Learn how to best use this chart...
Read more >
Chart Attributes - FusionCharts
This attribute allows to set the message to be displayed when chart data begins loading. To display an image as the chart message,...
Read more >
Line chart reference - Looker Studio Help - Google Support
Line charts are useful when you want to see how your data changes or fluctuates, either over time, or when measured against a...
Read more >
Figures and Charts - UNC Writing Center
What this handout is about. This handout will describe how to use figures and tables to present complicated information in a way that...
Read more >
Make a chart—ArcGIS Pro | Documentation
To display data on the chart, you must define required chart variables by selecting attribute fields from the source layer. On the Data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found