question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[KED-3039] Kedro Viz cuts off exported png/svg when datasets are hidden

See original GitHub issue

Description

I found that when I disable datasets in the “element types” menu, Kedro viz cuts off the left side of the diagram when exporting to png or svg. This causes some edges in the diagram to be be cut off as a result.

Context

I was trying to export the kedro viz diagram for some of my pipelines for including them in my documentation. I would like to use the export function instead of a screenshot because this allows me to export as SVG.

Steps to Reproduce

  1. Visualise a kedro pipeline using kedro viz
  2. Disable datasets in the “element types” menu in the bottom left corner of the kedro viz ui
  3. Export the diagram to png or svg using the export button

Expected Result

The exported diagram should be exported as svg or png, with all nodes and edges visible

Actual Result

The exported diagram has some cut off edges, because the left side of the diagram is cut off

-- If you received an error, place it here.
-- Separate them if you have more than one.

Your Environment

Include as many relevant details as possible about the environment you experienced the bug in:

  • Web browser system and version: Google Chrome Version 91.0.4472.101 (Official Build) (x86_64)
  • Operating system and version: macOS Catalina 10.15.7
  • NodeJS version used (if relevant):
  • Kedro version used (if relevant): 0.17.6
  • Kedro-viz version: 4.2.0
  • Python version used (if relevant): 3.7.4

Checklist

  • Include labels so that we can categorise your issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
richardwestenracommented, Jan 17, 2022

@rashidakanchwala If I recall correctly, we had that issue in the past and it was fixed, so it’s possible that the fix has been reverted or a new similar issue has crept in. I don’t recall the exact fix but it might have involved updating the chart size before exporting in src/components/export-modal/export-graph.js - that’s where I’d look first. Sorry I can’t give more guidance, it’s been a while. Good luck!

1reaction
tynandeboldcommented, Feb 1, 2022

Hey @alexanderkeijser73 we’ve release 4.3.1 which has a fix for this issue. Please try to export your pipeline using that version of Kedro-Viz and let us know how it goes 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

kedro-viz/RELEASE.md at main - GitHub
Visualise your Kedro data and machine-learning pipelines and track your ... Bug fix for when the exported pipeline image was sometimes cutting off...
Read more >
kedro-viz - bytemeta
kedro -viz repo issues. ... kedro viz won't work from commandline. studioswong ... [KED-3039] Kedro Viz cuts off exported png/svg when datasets are...
Read more >
kedro-org/kedro-viz Issues - Giters
Kedro kedro-viz: Visualise your Kedro data and machine-learning pipelines and ... [KED-3039] Kedro Viz cuts off exported png/svg when datasets are hidden.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found