Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

echart

introduce

https://github.com/apache/echarts
https://deepwiki.com/apache/echarts

  • 代码量:核心主体逻辑全ts实现,130760行ts;
$ tokei
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 CSS                     5          816          637           92           87
 JavaScript            233       416436       357004        54509         4923
 JSON                  305        70337        70328            0            9
 Pan                     3           93           62            0           31
 SVG                     8        21187        20433          397          357
 TypeScript            598       130760        87623        26574        16563
-------------------------------------------------------------------------------
 HTML                  550        33431        15015        10344         8072
 |- CSS                380         3764         3684           36           44
 |- HTML                 1           21           21            0            0
 |- JavaScript         545       132762       122782         3153         6827
 (Total)                         169978       141502        13533        14943
-------------------------------------------------------------------------------
 Markdown                5          314            0          204          110
 |- BASH                 1            7            6            1            0
 |- HTML                 1            7            3            4            0
 |- Shell                1           14            4            7            3
 (Total)                            342           13          216          113
===============================================================================
 Total                1707       673374       551102        92120        30152
===============================================================================

depencies

  • 整个项目源码主要依赖dependencies只有tslibzrender两个库
    • tslib: 跟tsc的tsConfig的importHelpers配置有关,用于减少ts编译后的重复工具函数;
    • zrender;