Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapping-saturation: change axis label of plot to aggregation type #611

Merged
merged 7 commits into from
Jul 11, 2023

Conversation

Gigaszi
Copy link
Contributor

@Gigaszi Gigaszi commented Jun 27, 2023

Description

y-axis of plot now has the aggregation type as label and not just "Value"

Corresponding issue

Closes #588

Checklist

  • I have updated my branch to main (e.g. through git rebase main)
  • My code follows the style guide and was checked with pre-commit before committing
  • I have commented my code
  • I have added sufficient unit and integration tests
  • I have updated the CHANGELOG.md

Please check all finished tasks. If some tasks do not apply to your PR, please cross their text out (by using ~...~) and remove their checkboxes.

@Gigaszi
Copy link
Contributor Author

Gigaszi commented Jul 1, 2023

the problem here is that indicators with attached data don't have an endpoint. So we either have to use something else to label the axis in general or we use "Value" in this case and the endpoint for all others accordingly

Comment on lines 171 to 174
if "endpoint" in self.topic:
fig.update_yaxes(title_text=self.topic.endpoint.split("/")[1].capitalize())
else:
fig.update_yaxes(title_text="Value")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use topic.aggregation_type after #600 is merged

matthiasschaub
matthiasschaub previously approved these changes Jul 11, 2023
@Gigaszi Gigaszi merged commit 0ed26bb into main Jul 11, 2023
2 checks passed
@Gigaszi Gigaszi deleted the mapping-saturation-axis branch July 11, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mapping Saturation figure should show the aggregation type (measure unit) instead of value on the y-axis
2 participants