Giter Site home page Giter Site logo

echarts's Introduction

Echart Graph 支持节点之间多边

Echart 版本 4.7.0

修改代码:

  • src/data/Graph.js -----解决可以添加重复边
  • src/chart/graphHelper.js -----修改重复边绘制位置,解决重复变重叠显示问题
  • src/chart/circularLayoutHelper.js ----- 不同视图引用
  • src/chart/simpleLayoutHelper.js ----- 不同视图引用
  • src/chart/forceHelper.js ----- 不同视图引用

验证情况:

  • 只在forceLayout视图模式,其他视图请自行验证
  • 正向、逆向、弧线情况
  • 只限制关系在3000以内使用,3000以外效率问题没验证
  • 为避免修改源码过多,代码尽量在一个文件修改,其他地方引用,实现可再优化,可根据实际情况再定
  • 目前只定义了一个上下移动边的固定阀值10,20,按理需要根据当前缩放比例计算该阀值,此处没处理
演示文件
  • index.html
效果图

效果图

调试、打包
  • npm run release 打包所有
  • npm run watch 本地调试

echarts's People

Contributors

songliuchen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.