Energy-Visualizer / eviz

Energy Visualizer (Summer 2024)
MIT License
0 stars 0 forks source link

Make Plot Titles Informative #54

Open kenny5033 opened 1 month ago

kenny5033 commented 1 month ago

Have the titles of the plots actually tell the user something about the data being presented. This will be query features, like Country, Year, etc.

UPDATE: Plot titles should be inputs from users and the query parameters should be contained in a "caption" (see more below).

kenny5033 commented 1 month ago

The descriptive plot titling has been started, but it would be useful to know: What information do we want to put in the titles? All the query parameters? Some subset of those?

kenny5033 commented 1 month ago

We want to include all the query parameters except those that are otherwise displayed. For instance, country might be displayed as a color on the xy plots, so that shouldn't be in the title.

rpruim commented 1 month ago

We might consider creating a "caption" (that's ggplot2 lingo for this) that describes the data rather than putting this in a title. The title for a plot should really act more like a headline, explaining tersely what the point of the plot is.

Here is an example of a caption used to explain the data source:

image

I'm not sure whether plotly has a similar notion of caption. If not, this might need to emulated some other way.

rpruim commented 1 month ago

see https://stackoverflow.com/questions/45103559/plotly-adding-a-source-or-caption-to-a-chart

kenny5033 commented 1 month ago

Plot titles have been added that contain all the necessary information about what data is in the plots. Currently they don't exist in as a "caption".

kenny5033 commented 6 days ago

Fixed bug causing parameters with multiple selections to crash showing the plot. Stemmed from the plot title function.