Skip to content

[FEATURE] Allow zoom in graph  #234

Closed

Description

@elvisbegovic
Overview of the issue

i use v1.0.0-beta.13

Motivation for or Use Case

In overview I ahve problem to read correctly graph at initial zoom and even when zoom maximum.

Initial zoom :
image

Max zoom:
image

Suggest a Fix

maybe allow all graph to zoom to infinite?

Activity

  1. changed the title [-]allow zoom in graph [feature-request][/-] [+][FEATURE] Allow zoom in graph [/+] on Jul 21, 2017
  2. added this to the 1.0.0-beta.15 milestone on Jul 22, 2017
  3. jaufgang commented on Aug 11, 2017

    @jaufgang
  4. vogloblinsky commented on Aug 13, 2017

    @vogloblinsky
    Contributor

    @jaufgang
    Yes you are right. I use visjs for dom tree graph in component page.
    I have done a little test for module graph, works fine but i have an issue with overlaping labels.

    image

  5. jaufgang commented on Aug 15, 2017

    @jaufgang

    Another point is that the modules with a large number of components have hard to read diagrams because all of the components are on the same row, so the diagram becomes extremely wide. A remedy for this could be to allow a maximum number of items on a row (maybe 8 or 10?), and then start adding new items on the next row below.

    See http://visjs.org/examples/network/layout/hierarchicalLayoutUserdefined.html for an example where items 2, 10, 7 and 12 are all siblings but are on different rows.

    I suppose the tricky bit there is keeping the arrow lines readable with a lot of items, but if that problem can be solved I think it look much better

    Note that this suggestion might also improve the readability of the existing static images if you don't implement it using visjs.

  6. modified the milestones: , 1.0.0-beta.15 on Aug 29, 2017
  7. modified the milestones: 1.1.0, 1.0.1 on Sep 7, 2017
  8. jaufgang commented on Nov 3, 2017

    @jaufgang

    Just FYI, I've stumbled across another cool looking library that you might want to consider using as an alternate to visjs. perhaps it would avoid the overlapping labels issue

  9. vogloblinsky commented on Nov 3, 2017

    @vogloblinsky
    Contributor

    @jaufgang which is ? 😃

  10. jaufgang commented on Nov 3, 2017

    @jaufgang
  11. 2 remaining items

  12. NicolasBehra commented on Dec 13, 2017

    @NicolasBehra

    For more zooming, you can also increase the number of maxZoom allowed under the file ./js/svg-pan-zoom.controls.js

    panZoom = svgPanZoom(document.getElementById('module-graph-svg').querySelector('svg'), {
    zoomEnabled: true,
    minZoom: 1,
    maxZoom: 30
    });

    Hope it helps :)

  13. modified the milestones: 1.1.0, 1.2.0 on Mar 12, 2018
  14. vogloblinsky commented on Mar 22, 2018

    @vogloblinsky
    Contributor

    Last work on this topic could be seen in this screenshot.
    I have done a proof of concept with dagre-d3.

    • works fine with long element label.
    • graph is simpler because a component which is declarated and exported appears once, and not twice in the viz.js static graph rendering.

    before / viz.js
    capture-20180322101649-1885x1053

    future / dagre-d3
    capture-20180322101439-1885x1053

  15. mikejf-pr commented on Feb 13, 2019

    @mikejf-pr

    I appreciate that there's work happening on a new graphing engine, but given that it's been underway for a while, is there any way we could get some interim improvements to make the current graph a bit more usable? We're having the same zoom problem.

  16. stale commented on Sep 30, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  17. stale commented on Oct 7, 2019

    @stale

    This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.

  18. lock commented on Dec 6, 2019

    @lock

    This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

  19. locked as resolved and limited conversation to collaborators on Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions