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

Update default templates #139

Closed
wants to merge 2 commits into from
Closed

Update default templates #139

wants to merge 2 commits into from

Conversation

mattseddon
Copy link
Member

This PR adds zoom and pan functionality to the bar_horizontal, bar_horizontal_sorted, smooth, linear and simple templates. It also updates the smooth/linear plot's tooltips.

{
"transform": [
{
"calculate": "datum.rev + '::' + datum.filename + '::' + datum.field", # noqa: E501
Copy link
Member Author

Choose a reason for hiding this comment

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

These fields have to be present in the data in order to implement the new tooltips. I am not sure if these or dvc_data_version_info are present in the Studio/DVC data. Will need to investigate.

Copy link
Member Author

@mattseddon mattseddon Sep 11, 2023

Choose a reason for hiding this comment

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

This line is also too long and giving pylint the shits.

Copy link
Member Author

Choose a reason for hiding this comment

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

From iterative/dvc#9931 (comment) seems like we want to add an actual ID field instead of calculating this.

@mattseddon
Copy link
Member Author

Changing approach as per iterative/dvc#9940

@mattseddon mattseddon closed this Sep 13, 2023
@mattseddon mattseddon deleted the update-default-templates branch September 13, 2023 03:45
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.

1 participant