diff --git a/dvc/commands/plots.py b/dvc/commands/plots.py index 7a5c1570c6..8e99a7e7cd 100644 --- a/dvc/commands/plots.py +++ b/dvc/commands/plots.py @@ -229,6 +229,8 @@ class CmdPlotsTemplates(CmdBase): "confusion_normalized", "scatter", "smooth", + "bar_horizontal_sorted", + "bar_horizontal", ] def run(self): diff --git a/setup.cfg b/setup.cfg index 249f31d91e..a683332a1f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,9 +66,9 @@ install_requires = fsspec[http]>=2021.10.1 aiohttp-retry>=2.4.5 scmrepo==0.0.25 - dvc-render==0.0.6 + dvc-render==0.0.9 dvc-task==0.1.0 - dvclive>=0.7.3 + dvclive>=0.10.0 dvc-data==0.1.5 [options.extras_require] diff --git a/tests/integration/plots/test_plots.py b/tests/integration/plots/test_plots.py index 21d138ab43..262020f522 100644 --- a/tests/integration/plots/test_plots.py +++ b/tests/integration/plots/test_plots.py @@ -48,9 +48,11 @@ def extract_vega_specs(html_path, plots_ids): reader = BeautifulSoup(content, features="html.parser") for plot_id in plots_ids: - clean_id = Renderer.remove_special_chars(plot_id) - div_id = f"plot_{clean_id}" - script = _remove_blanks(reader.find("div", id=div_id).script.text) + script = _remove_blanks( + reader.find( + "div", id=Renderer.remove_special_chars(plot_id) + ).script.text + ) result[plot_id] = json.loads( script.split("; vegaEmbed")[0].replace("var spec = ", "") )