aaron-parks-epa / GLIMPSE-ModelInterface

A tool for querying results of a GCAM run and visualizing the results.
Other
2 stars 0 forks source link

Force plots of stacked bars. #1

Open aaron-parks-epa opened 2 months ago

aaron-parks-epa commented 2 months ago

What determines whether to plot stacked bars with a legend vs multiple small plots? The "aggregated land use" query generates stacks:

stacked2

While the "ag productivity by crop type" generates multiple figures, despite selecting "StackedBarChart":

stacked1

Is it a question of the number of non-numeric output columns? It would be great if there were a way to force these to be plotted as stacked bars, perhaps requiring the selection of a column to use in the legend.

DLoughlin commented 2 months ago

The graphing tools make use of the information columns to determine how to group series (e.g., on same plot or on different plots). In this instance, we may be able to have the series appear on the same plot by using the collapse XPath option to remove one of the columns. I'll look into it and will provide some guidance and/or a fix.