zxCoder
V2EX  ›  问与答

有没有根据图关系直接生成合适的图(坐标)的 Python 包

  •  
  •   zxCoder · Jun 18, 2021 · 807 views
    This topic created in 1808 days ago, the information mentioned may be changed or developed.

    要在前端画一个关系图,但是用 echart 需要指定每个节点的 x 和 y,有没有什么方法动态生成这个坐标,因为图数据是动态的

    3 replies    2021-06-18 17:03:24 +08:00
    BiteTheDust
        1
    BiteTheDust  
       Jun 18, 2021
    zxCoder
        2
    zxCoder  
    OP
       Jun 18, 2021
    @BiteTheDust 对 这个感觉做的很好 不知道是什么工具做的, 我在 echart 找到了一个 force 布局的选项,但是感觉还是不太灵活
    ByteMind
        3
    ByteMind  
       Jun 18, 2021
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.