Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
1360 lines (870 sloc) 101 KB

4.2.2 (2022-05-19)

New Features
  • axis: 鏇存柊 axis-description-tooltip 鏍峰紡, 娣诲姞鑷畾涔 style 閰嶇疆 (#3929) (27d35093)

4.2.1 (2022-05-10)

Bug Fixes

4.2.0 (2022-04-22)

Refactors
  • use worker to do label layout 馃殌 (#3888) (bb4c67f1)

  • geometry: 浼樺寲 label 鍜 element 鐨勭粦瀹氶昏緫 (#3884) (64f1c3a8)

4.1.50 (2022-04-13)

Documentation Changes
  • axis API 鏂囨。涓柊澧 title 瀛楁鐨 description 閰嶇疆 (#3863) (7e2493c8)
New Features
  • axis: 娣诲姞鍧愭爣杞存爣棰樿缁嗚鏄 icon 浜や簰浜嬩欢 (#3863) (7e2493c8)

4.1.49 (2022-03-25)

Chores
  • ci actions 娣诲姞 pr 瑙﹀彂鏃舵満 (4cc0475f)
Bug Fixes

4.1.48 (2022-03-23)

Documentation Changes
  • 鏇存柊鏂囨。锛屽皢 chart.source 鏀逛负 chart.data (#3816) (ddda1f80)
New Features
  • theme: 涓婚鏀寔瀹屾暣鏍峰紡琛ㄧ殑鑷畾涔 (#3833) (97a5b419)
Bug Fixes
  • interval: 淇杞疆鍚庣殑鍦嗚鏉″舰鍥炬覆鏌撳鍑轰竴閮ㄥ垎 (#3826) (b12dd0fe)

4.1.47 (2022-03-03)

New Features
  • 鍩轰簬鏂扮増鏈敞閲婅鑼冭皟鏁 interface 鏂囦欢浠g爜娉ㄩ噴 (#3817) (d3ebdba4)

4.1.46 (2022-02-11)

Documentation Changes
  • 淇敼閽夐拤缇ゅ彿 (ce197ed0)
Bug Fixes
  • 淇 timeCat scale 娌℃湁褰撲綔 groupScale锛屽鑷村搴斿満鏅殑鎶樼嚎鍥剧粯鍒舵棤娉曟甯稿垎缁 (1861807e)
  • update actions/checkout version to avoid vulnerability (#3774) (781eb8c8)

4.1.45 (2022-02-09)

Bug Fixes
  • interval: 淇 interval color 閫氶亾娌℃湁 field锛屼細瀵艰嚧 tooltip name 娑堝け (3e3d03fb)

4.1.44 (2022-02-08)

Chores
  • add pr-auto-labels & auto-release-generate (94146ea0)
Bug Fixes
  • charts: 淇 annotations 鍒涘缓澶辫触 (09cde2d1)

4.1.42 (2022-01-28)

Bug Fixes
  • slider: 淇 slider 杩囧ぇ鎸ゅ帇鍥惧舰鐨勯棶棰 #2968 (#3794) (a3187617)
  • toolitp: 淇 limitInPlot 灞炴ф棤娉曞睆钄戒竴浜涘悗鍑虹幇鐨勭姸鎬 (#3792) (50e319dc)

4.1.41 (2022-01-25)

Bug Fixes
  • 淇 jitter 鐐瑰浘 adjust 鍚庣偣浣嶇疆涓嶆纭殑闂 (#3790) (5ffcb7ac)
  • 淇鑾峰彇鍒嗙粍 scale 閿欒 & tooltip 鑾峰彇 value-scale 涓嶅拷鐣 color銆乻hape 閫氶亾鐩稿叧瀛楁 (#3768) (ab893335)

4.1.40 (2022-01-18)

Documentation Changes
  • 娣诲姞瀵 scale 鐨勫煎煙璇存槑锛屼笌 d3 鍊煎煙鐢ㄦ硶鐩稿姣旓紝闃叉璇В銆 (#3781) (3b07b921)
New Features
  • legend: 鍥句緥 radio 澧炲姞 tip 鏂囨鎻愮ず (#3786) (6736def0)
Bug Fixes
  • legend: 淇 legend radio 璁剧疆鏍峰紡涓嶇敓鏁 (#3784) (fe554991)
Chores
  • resolutions 鏇存柊 淇 remark-mdx 寮曞叆闂 (#3785) (0212ce97)
  • release actions (52059d5e)

4.1.39 (2022-01-14)

Chores
Bug Fixes
  • legend: 淇鍥句緥 radio focus 妯″紡 & 澧炲姞 demo (#3779) (5295b78a)
  • remove node 12 to fix release action failed (#3720) (1358be9a)

4.1.38 (2022-01-12)

Bug Fixes
  • issue-3723: 淇 annotation 鍦ㄧ瓫閫夋潯浠朵笅锛岃寖鍥村鐨勬爣娉ㄤ笉闇瑕佸睍绀 (#3775) (151f9152)
  • slider,scrollbar: 淇 slider 銆乻crollbar values 鎺掑簭閿欒鐨勯棶棰 (#3773) (6e84c446)

4.1.37 (2022-01-04)

Bug Fixes
  • slider,scrollbar: 婊氬姩鏉″拰缂╃暐杞 鍦 xScale 涓虹嚎鎬ф椂绛涢夐敊璇殑闂 (#3767) (768eb3c3)

4.1.36 (2021-12-29)

New Features
  • legend: 娣诲姞鍥句緥鐨勬鍙嶉夊姛鑳 (#3756) (2c92f5d8)
Bug Fixes
  • scrollbar: Scale option tickMethod doesn't work when enable scrollbar (#3747) (cb3ad042)
Performance Improvements
  • 浼樺寲鎬ц兘锛岀敱浜 set-zindex 姣忔閮戒細璋冪敤 sort锛屽鑷磋楁椂涓烘寚鏁扮骇鍒殑 (#3758) (f2877bcf)

4.1.35 (2021-12-14)

Bug Fixes
  • bar: 淇鏉″舰鍥惧湪 reflect y 鏃讹紝缁樺埗鍦嗚閿欒 (#3745) (048a4920)
Documentation Changes

4.1.34 (2021-11-01)

Chores
Documentation Changes
New Features
Bug Fixes

4.1.33 (2021-10-28)

Documentation Changes
New Features
Bug Fixes

4.1.32 (2021-10-21)

Documentation Changes
  • demo: 澧炲姞涓涓甫鍔ㄦ晥鐨勬煴鐘跺浘 (#3689) (5c0f6a4a)
New Features
  • element: element 鍥惧舰鍏冪礌鎸夌収 elementIndex 璁剧疆灞曠ず灞傜骇 (#3671) (4a536731)
Bug Fixes
  • 淇 element 璁剧疆灞傜骇 zIndex 鐨勬椂鍊欙紝闇瑕佽冭檻 zIndexReversed (#3685) (c3654776)
  • label: 淇 label 鍋氬潗鏍囩郴闀滃儚涓嬶紝浣嶇疆璁$畻闂 (#3682) (71ee0d91)

4.1.31 (2021-10-13)

Documentation Changes
New Features
  • scrollbar:
    • 鏀寔璁剧疆涓庤幏鍙栧綋鍓嶆粴鍔ㄦ潯鐨勪綅缃 (#3639) (3c89edf5)
    • mouse wheel for scrollbar (#3606) (67313836)
  • aria: 璁剧疆鏃犻殰纰嶆爣绛 (#3656) (7d69af78)
Bug Fixes
  • scrollbar: 婊氬姩鏉$旱鍚戝湪 reflectY 涓嬬殑鏁版嵁闂 (#3678) (1e412f32)
  • type: MarkerCallback return type (#3674) (88ef320e)
  • demo: streamgraph typo (#3659) (e0189dc2)
  • 鍥句緥绫诲瀷瀹氫箟, 闄や簡 marker 鍏跺畠缁ф壙 component (#3654) (6ba4cf9a)

4.1.30 (2021-09-28)

Bug Fixes
  • state-style: 淇瀛樺湪鐘舵佹椂锛屽姩鐢讳涪澶 (2619645a)

4.1.29 (2021-09-26)

Bug Fixes
  • custom-content: 淇 custom-content undefined 鏃犳硶鍙樺洖 tooltip 妯$増鐨勯棶棰 (#3644) (2790c349)

4.1.28 (2021-09-24)

New Features
Bug Fixes
  • crash on safari 15 when fillText with unicode (#3640) (0516f6e3)
Reverts

4.1.26 (2021-09-15)

Documentation Changes
  • facet: 淇敼浜嗛暅鍍忓垎闈紝浣垮緱杞存爣绛惧眳涓樉绀 (#3619) (e3d83880)
  • set default lang = zh (#3609) (d0224cc5)
New Features
Bug Fixes
  • tooltip: 淇 clear + render 涔嬪悗锛宼ooltip dom 閲嶅鐢熸垚闂 (#3621) (eaacd502)
  • legend 鑷畾涔 items 娣诲姞 marker 鍥炶皟 (#3591) (dc80db29)
  • scrollbar: 淇浜嗙敱浜 getYScales 鏂规硶涓幓閲嶆柟娉曢敊璇鑷寸殑 scrollbar 浼氬湪鐗瑰畾鎯呭喌涓嬪け鏁(#3569锛 (#3570) (28280ee4)
  • annotation: 淇 annotation 娣诲姞 id 澶辫触 (#3601) (7561b33d)
Refactors
  • annotation: annotation position 鏀寔鐧惧垎姣旀贩鐢 (#3615) (bcffa462)
  • facet: 娣诲姞浜 spacing 灞炴э紝鏀寔閰嶇疆鍒嗛潰鍥句箣闂寸殑闂磋窛 (#3614) (d5588a0e)
  • funnel: annotation 浣嶇疆娣诲姞 center锛屾敮鎸佸湪婕忔枟鍥句腑姝e父鏄剧ず (#3611) (552500df)

4.1.25 (2021-08-25)

Documentation Changes
Bug Fixes
  • funnel: pyramid shape 鏈涓嬮潰涓灞傜殑 label 缁樺埗涓嶅榻 (#3585) (13a2e05d)

4.1.24 (2021-08-14)

Documentation Changes
New Features

4.1.23 (2021-08-06)

Documentation Changes
Bug Fixes
  • line: 淇鎶樼嚎鍥 smooth 缁樺埗閿欒 (#3546) (daf3b8a8)
Code Style Changes

4.1.22 (2021-07-28)

New Features
  • legend: 鍥句緥鏀寔澶氳鍒嗛〉 (#3540) (1b0fdb36)
  • range-highlight: 涓哄尯闂撮珮浜鍔 events 浜嬩欢 (#3536) (6fb9d901)

4.1.21 (2021-07-21)

Chores
New Features
  • legend: 鍥句緥鑻ュ共鏇存柊 (#3529) (23323b7a)
  • mask: mask 浜や簰鏀寔閰嶇疆鏍峰紡 & test cases (#3504) (752c127e)
Bug Fixes
  • heatmap: 淇鐑姏鍥 style shadowBlur 涓嶇敓鏁 & color 浣跨敤鍥炶皟浼氬鑷寸櫧灞 (#3532) (664cf1a7)
  • legend: 杩囨护杩炵画鍥句緥鐨 value 鍙傛暟锛岄槻姝㈠奖鍝嶅埌 component legend 鐨 value 灞炴 瀵艰嚧浜や簰闂 (#3527) (f30d700c)

4.1.20 (2021-07-06)

Documentation Changes
Bug Fixes
  • legend: 淇 legend marker 鍥炶皟璁剧疆锛宻pacing 涓嶇敓鏁(#2671) (026f5eb)

4.1.18 (2021-06-22)

Documentation Changes
New Features
  • events: 鏆撮湶 brush 浜や簰鐨勭敓鍛藉懆鏈燂紝渚夸簬鍦 G2Plot 灞傚彲浠ョ洃鍚 (#3485) (a8690cd9)
  • interaction/link-by-color: element-link 浜や簰鍙嶉澧炲姞鍙傛暟閰嶇疆 (#3483) (3ddbbd31)
Bug Fixes
  • active-region 鑻ュ共闂 (#3484) (2e62682a)
  • fix trendCfg type definition of SliderCfg (#3410) (9ef59440)
  • types: 淇绫诲瀷瀹氫箟锛岃缃负鍙夐」 (#3482) (5b3535aa)

4.1.18 (2021-06-07)

New Features
  • legend: 鍥句緥鏀寔鍥炶皟璁剧疆 marker (#3448) (ed3047e7)
Bug Fixes
  • 淇 view 涓婃病鏈夋纭殑 scale 鏃讹紝缁樺埗 annotation 鍑洪敊 (#3450) (d0af4095)
Other Changes
  • 淇 view.changeData 鍦ㄩ噸鏂版覆鏌撶殑鏃跺 鎶 toFront 涓 underfind 鐨勯敊璇 (#3438) (76e08d06)

4.1.17 (2021-05-26)

Chores
Documentation Changes
New Features

4.1.15 (2021-04-25)

New Features
  • 涓婚涓鍔犲浘渚嬫牱寮忕殑閰嶇疆锛屼究浜庣敤鎴蜂簡瑙f庝箞淇敼 (#3376) (5d3fac4c)
  • theme: 涓婚 Token (#3361) (182c68a6)
Bug Fixes

4.1.14 (2021-04-12)

Chores
  • 瑙e喅鏈湴寮鍙戞帶鍒跺彴 warning & babel 瑙f瀽 tsx銆乯sx 璇硶 (#3360) (e63fa397)
  • 娣诲姞 release create to trigger publish site (#3355) (857c5d06)
  • 淇 import type 瀵艰嚧缃戠珯鏃犳硶鍚姩锛屾洿鏂颁负 export type (#3350) (35e37bd1)
Continuous Integration
Documentation Changes
  • legend: 鍥句緥瀹屽杽榛樿涓嶉変腑浠ュ強鐐瑰嚮閫変腑浜や簰鐨勬枃妗 & 澧炲姞 demo (#3351) (2841641a)
New Features
  • 琛ュ厖鍏煎鎬ф枃妗&淇敼 webpack 閰嶇疆 (#3346) (292a7b02)
Bug Fixes
  • issue-3160: 淇楗煎浘浣跨敤杩炵画鍨嬪浘渚嬶紝鏍囩鏃犳硶灞曠ず (#3366) (a392a8b4)
  • 淇涓婚鐩稿叧鐨勯敊璇嫾鍐 (#3358) (804dbc69)

4.1.13 (2021-03-17)

Documentation Changes
New Features
  • 鍗 view 鏀寔榛樿鍥句緥閫変腑 (#3327) (6aa4000b)
  • legend: 鍥句緥鏀寔閰嶇疆鍒嗛〉鍣ㄧ殑涓婚鏍峰紡 (#3324) (74afc606)
Bug Fixes

4.1.12 (2021-02-19)

New Features
  • typings: 澧炲己绫诲瀷澹版槑 (fd18579e)
  • scrollbar: 婊氬姩鏉″鍔犱竴涓粴閬撴縺娲绘牱寮忛厤缃 (#3291) (aed93a19)
  • legend: legend 澧炲姞 checked 鍗曢変氦浜 (#3289) (3a16db62)
  • animation: 鍔ㄧ敾娣诲姞閲嶅鎵ц鍙傛暟 (#3290) (38585ac4)
  • life-circle: view 鐢熷懡鍛ㄦ湡浜嬩欢瑙﹀彂锛屾惡甯︿簨浠跺唴瀹 (#3288) (657eb978)
Bug Fixes
  • cr 寤鸿淇敼锛岀粺涓鍙橀噺鍛藉悕 (6b3f5b7b)

4.1.11 (2021-02-10)

Documentation Changes
  • 鏃ュ父鏂囨。璧版煡, 灞傜骇澶勭悊 (#3277) (d4fec82e)
New Features
  • active-region: 鏀寔閰嶇疆搴曡壊鏍峰紡锛屽叏灞缁熶竴娉ㄥ唽涓涓 閰嶇疆鏍峰紡 (#3284) (48c5bd12)
  • scrollbar: 婊氬姩鏉″鍔犱富棰樻牱寮忚缃紝鍏佽璁剧疆婊戦亾銆佹粦鍧楅鑹 (#3286) (2c3e9d37)
  • interaction: 娉ㄥ唽浜や簰鐨勬椂鍊欙紝鍏佽娉ㄥ唽甯︿笂瑙﹀彂 action 鐨勫弬鏁 (#3280) (89aa37fe)
Bug Fixes
  • event: 淇鐩稿悓 type 浜嬩欢瑙﹀彂涓ゆ (#3282) (9d61410b)
  • pie: 楗煎浘鏁版嵁 NaN 瀵艰嚧椤甸潰宕╂簝鏁版嵁杈圭晫澶勭悊(#2930) (#3248) (cabe1f0b)
  • pie 淇楗煎浘鍦ㄥ姩鐢绘洿鏂拌繃绋嬩腑濡傛灉瀹藉害鍙樹负 0 瀵艰嚧鐨勯棶棰 (#3271) (9f561499)
  • rose: 淇 TooltipItem data 绫诲瀷 (#3273) (8ed68854)
Other Changes
  • constants export constant varaibles of view-life-circle (#3281) (d0f96c48)

4.1.10 (2021-02-03)

Documentation Changes
  • labels.ts: 淇敼娉ㄩ噴閿欏埆瀛 (#3262) (9e1af1c1)
  • 琛ュ厖 geometry 鍜 element 鐨 api 鏂囨。 (#3249) (c2d061e0)
New Features
  • tooltip: tooltip.shwoContent support function (#3261) (a26c0732)
  • 澧炲姞 getAction 鐨勮繑鍥炲弬鏁扮被鍨嬪畾涔 (#3256) (024f9f9e)
Bug Fixes
  • 鍒ゆ柇鎻愬墠,棰勯槻 time 绫诲瀷鍑虹幇鐨勯敊璇 (#3258) (a143ef54)
  • 淇瀹炲績鐨 shape 璁剧疆绌哄績鐨 marker锛屼細瀵艰嚧 marker.style 璁剧疆涓嶇敓鏁 (#3250) (88c45f88)
  • 鎻愮ず澧炲己 (#3259) (4ffac0b0)

4.1.8 (2021-01-27)

Feature
Performance Improvements
  • 浼樺寲榧犳爣浜嬩欢鍦 path 涓婄殑鎷惧彇鎬ц兘 (#3230) (71b0a2e)
Docs
  • 淇 scrollbar 鏂囨。閿欒 (#3236) (e38cf5d)
  • 瀹屽杽 interaction 鑻辨枃鏂囨。 (#3234) (b6b334e)
  • 绉婚櫎鍥句緥搴熷純鐨 api & tooltipStyles 绫诲瀷瀹氫箟淇暣 (#3227) (69540f6)
  • 鏂囨。璧版煡浼樺寲 (#3221) (f25e30e)
  • 绉婚櫎 legend useHtml api (#3202) (56bc7f1)

4.1.7 (2021-01-13)

Documentation Changes
New Features
Tests

4.1.6 (2021-01-08)

Performance

4.1.5 (2021-01-07)

Documentation Changes
New Features
  • interval shape 鏀寔 background (#3175) (0a9ee039)
  • 鏀寔瀵 geometry 涓嬬殑 elements zIndex 杩涜闄嶅簭 (#3173) (612cf971)
Bug Fixes
  • tooltip-tip: label tip max width 50%, and break word (#3177) (b7a86fec)
  • geometry: geometry.update should update scale when data is changed (#3174) (86f2c570)
  • correct label position for histogram (#3156) (0f6e7167)

4.1.4 (2020-12-22)

Documentation Changes
New Features
Bug Fixes
  • 淇璺緞閿欒 (#3148) (bd49fbe1)
  • fix line geometry fail to set dot or dash shape(#3144) (239e8a67)
  • 淇 element shape 杩涜 syncShapeStyle 鏃讹紝鍙兘瀛樺湪绌哄璞$殑鎯呭喌 (#3110) (904202d1)
  • fix empty div container for annotation (#3112) (f3739657)
  • testcases: 澧炲姞鍗曟祴锛実 灞備慨澶 animate shape 鍦 changesize 鐨勬椂鍊欐姤閿 (#3113) (28d235b0)

4.1.3 (2020-12-17)

Documentation Changes
  • 澧炲姞 faq,鍗囩骇鎸囧崡绛夋枃妗 (#3119) (2033d030)
  • 澧炲姞 element, view.en, dataset 绛夎嫢骞叉枃妗 (#3118) (8d112f15)
Bug Fixes
  • testcases: 澧炲姞鍗曟祴锛実 灞備慨澶 animate shape 鍦 changesize 鐨勬椂鍊欐姤閿 (#3113) (28d235b0)
  • fix empty div container for annotation (#3112) (f3739657)

4.1.2 (2020-12-11)

Chores
Documentation Changes
Bug Fixes
  • fix early create canvas context cause build error in server side (#3081) (773abdd9)
  • issue-3073: 淇鏁版嵁瀛樺湪 null 鍊硷紝鍦 pie-outer 鏍囩甯冨眬涓嬫姤閿 (#3074) (73708e93)

4.1.1 (2020-12-02)

Bug Fixes
  • issue-3073: 淇鏁版嵁瀛樺湪 null 鍊硷紝鍦 pie-outer 鏍囩甯冨眬涓嬫姤閿 (#3074) (73708e93)

4.1.0 (2020-12-01)

Chores
Documentation Changes
New Features
Bug Fixes
Refactors
  • theme: 涓婚閲嶆瀯锛屾毚闇 createTheme 鏂规硶 (#3018) (e7471d70)

4.1.0-beta.21 (2020-11-25)

Bug Fixes
  • limitInPlot 鏇存柊鍚庨渶瑕佹竻闄 clip (#3043) (b641da2f)

4.1.0-beta.20 (2020-11-21)

Chores
Documentation Changes
New Features
Bug Fixes
Refactors
  • theme: 涓婚閲嶆瀯锛屾毚闇 createTheme 鏂规硶 (#3018) (e7471d70)

4.1.0-beta.19 (2020-11-19)

Chores
Documentation Changes
New Features
  • pixel interval padding and dodge padding (#2881) (d27fff29)
  • view: add syncViewPadding support callback (#2995) (c8355f21)
  • theme: 涓婚閲嶆瀯锛屾毚闇 createTheme 鏂规硶 (#3018) (e7471d70)
Bug Fixes

4.1.0-beta.17 (2020-11-10)

Chores
Documentation Changes
New Features
  • label: add adjust-position for path geometry and hide-overlap for interval (#2991) (b66f4005)
  • theme: 鏇存柊涓婚鑹,鏇存柊涓変釜鑹插 (#2963) (b5a00425)
  • line-style: default use round style (#2953) (30b7655a)
  • G2 灞傛敮鎸 custom annotation html annotation (#2934) (6209203a)
  • annotation: add support for mean / median (#2922) (f8054857)
  • legend: set default maxItemWidth = 200 (#2889) (9e1b2585)
  • region-filter: add geometry life circle, after draw animate (#2879) (2738acb5)
Bug Fixes
  • annotation:
  • the event variable is misspelled (#2984) (4dcf6c90)
  • ci hang (#2979) (bdde7f3a)
  • delete fill attr in interval-line (#2974) (8848b788)
  • median typo (#2925) (57648275)
  • 淇 adjust-color label layout 瀵逛竴浜涢鑹蹭笉鐢熸晥鐨勯棶棰 (#2919) (b1f2c2a1)
  • 婕忔枟鍥 label position 鍙敓鏁 (#2909) (c2727a82)
  • tooltip: 鍏堝 Geometry 鏁版嵁鍒ょ┖鍐嶈繘琛屾煡鎵 (#2970) (1822bf41)
  • interaction: fix link-by-color path for transposed coord (#2972) (7793c419)
  • label: fix label position for zero data (#2973) (60e34b17)
  • #2905: 鏃犻渶浼犲叆 color,color 蹇呴』鏉ユ簮浜庡瓧娈垫槧灏 (#2945) (acf7ad40)
  • issue-2905: 鑷畾涔 shape 鐨勯粯璁ゆ牱寮忚缃 (#2906) (dac96901)
  • issue-2541: state 鐘舵佷緷鐒跺瓨鍦ㄦ椂锛屼絾鐢变簬 changeSize, changeData 绛夐噸缁樺悗涓㈠け (#2871) (dcb39aa3)
  • pie-demo: typo, fixed #2884 (#2897) (6aa10078)
  • types: add legend option (#2892) (bf3531ff)
Refactors

4.1.0-beta.16 (2020-11-04)

Chores
Documentation Changes
New Features
  • theme: 鏇存柊涓婚鑹,鏇存柊涓変釜鑹插 (#2963) (b5a00425)
  • line-style: default use round style (#2953) (30b7655a)
  • G2 灞傛敮鎸 custom annotation html annotation (#2934) (6209203a)
  • annotation: add support for mean / median (#2922) (f8054857)
  • legend: set default maxItemWidth = 200 (#2889) (9e1b2585)
  • region-filter: add geometry life circle, after draw animate (#2879) (2738acb5)
Bug Fixes
  • delete fill attr in interval-line (#2974) (8848b788)
  • median typo (#2925) (57648275)
  • 淇 adjust-color label layout 瀵逛竴浜涢鑹蹭笉鐢熸晥鐨勯棶棰 (#2919) (b1f2c2a1)
  • 婕忔枟鍥 label position 鍙敓鏁 (#2909) (c2727a82)
  • tooltip: 鍏堝 Geometry 鏁版嵁鍒ょ┖鍐嶈繘琛屾煡鎵 (#2970) (1822bf41)
  • interaction: fix link-by-color path for transposed coord (#2972) (7793c419)
  • label: fix label position for zero data (#2973) (60e34b17)
  • #2905: 鏃犻渶浼犲叆 color,color 蹇呴』鏉ユ簮浜庡瓧娈垫槧灏 (#2945) (acf7ad40)
  • annotation: text annotation re-render will be hidden (#2916) (9891f40b)
  • issue-2905: 鑷畾涔 shape 鐨勯粯璁ゆ牱寮忚缃 (#2906) (dac96901)
  • issue-2541: state 鐘舵佷緷鐒跺瓨鍦ㄦ椂锛屼絾鐢变簬 changeSize, changeData 绛夐噸缁樺悗涓㈠け (#2871) (dcb39aa3)
  • pie-demo: typo, fixed #2884 (#2897) (6aa10078)
  • types: add legend option (#2892) (bf3531ff)
Refactors
  • legend: legend update and render with same logic (#2890) (10666c0c)

4.1.0-beta.14 (2020-10-22)

Documentation Changes
New Features
  • G2 灞傛敮鎸 custom annotation html annotation (#2934) (6209203a)
  • annotation: add support for mean / median (#2922) (f8054857)
  • legend: set default maxItemWidth = 200 (#2889) (9e1b2585)
  • region-filter: add geometry life circle, after draw animate (#2879) (2738acb5)
Bug Fixes
  • #2905: 鏃犻渶浼犲叆 color,color 蹇呴』鏉ユ簮浜庡瓧娈垫槧灏 (#2945) (acf7ad40)
  • annotation: text annotation re-render will be hidden (#2916) (9891f40b)
  • median typo (#2925) (57648275)
  • 淇 adjust-color label layout 瀵逛竴浜涢鑹蹭笉鐢熸晥鐨勯棶棰 (#2919) (b1f2c2a1)
  • 婕忔枟鍥 label position 鍙敓鏁 (#2909) (c2727a82)
  • issue-2905: 鑷畾涔 shape 鐨勯粯璁ゆ牱寮忚缃 (#2906) (dac96901)
  • issue-2541: state 鐘舵佷緷鐒跺瓨鍦ㄦ椂锛屼絾鐢变簬 changeSize, changeData 绛夐噸缁樺悗涓㈠け (#2871) (dcb39aa3)
  • pie-demo: typo, fixed #2884 (#2897) (6aa10078)
  • types: add legend option (#2892) (bf3531ff)
Refactors
  • legend: legend update and render with same logic (#2890) (10666c0c)

4.1.0-beta.11 (2020-10-09)

New Features
  • legend: set default maxItemWidth = 200 (#2889) (9e1b2585)
  • region-filter: add geometry life circle, after draw animate (#2879) (2738acb5)
Bug Fixes
Refactors
  • legend: legend update and render with same logic (#2890) (10666c0c)

4.1.0-beta.10 (2020-09-28)

Chores
Documentation Changes
New Features
  • improve interval label position (#2869) (81ae97fa)
  • view padding sync (#2843) (032e9208)
  • 娣诲姞 supportCSSTransform 灞炴, 浣垮浘琛ㄥ湪 css transform 涓嬩簨浠跺拰浜や簰閮界敓鏁 (#2829) (c2190595)
  • support scrollbar component (#2813) (93436c11)
  • geometry: add geometry.custom API for registerShape (#2831) (ab589e30)
  • options: 鏀寔閰嶇疆椤瑰紡澹版槑鍒嗛潰 (#2788) (67cfdf34)
Bug Fixes
  • 淇鏁版嵁涓虹┖鏃 slider 鎶ラ敊鐨勯棶棰 (#2855) (1b706bec)
  • fix slider changeSize bug and scrollbar overlap with legend (#2840) (38f07d4b)
  • build before deploy to get latest type definition (#2833) (167daa3e)
  • slider bugfix (#2828) (10edf2e6)
  • add dom-util dependence (#2789) (0c54f436)
  • demo: 淇鐜浘鑷畾涔 label 鐨 demo, 鑾峰彇 labelItems 涓虹┖ (#2838) (c1c764cf)
  • typos: correct spelling (#2811) (7c671d0d)
  • clear: chart.clear then render, momery leak (#2800) (a6f56a73)
  • #2763: 淇 legend-filter 鍦 view 涓涓洪敊璇 (#2802) (4432e0ed)
  • offscreen: sync clip style in offscreen group (#2795) (554f619f)
  • #2433: fix slider collide legend (#2793) (6b6479d5)
  • issue-2778: 淇 label 鐐瑰嚮鐨勬椂鍊欙紝娌℃湁鑾峰彇鍒版暟鎹 (#2791) (85e3b147)
Other Changes
Tests

4.1.0-beta.1 (2020-09-02)

Chores
Documentation Changes
New Features
Bug Fixes

4.0.15 (2020-08-14)

Documentation Changes
New Features
  • background: 浣跨敤 shape 鏉ョ粯鍒 dark 鐨勮儗鏅壊 (#2745) (6adbdbf4)
  • annotation: text annotation 鎻愪緵 content 鍥炶皟锛屽皢鍥捐〃 filteredData 浣滀负鍥炶皟鍙傛暟 (#2735) (0e4d1f12)
  • Tooltip supported customContent (#2739) (5dc5a36e)
  • add api-extractor for extract typescript declare file (#2725) (22620898)
  • pie-label: add pie-outer label layout (#2726) (d94157da)
Bug Fixes
Refactors
  • axis: axis update 鍖呭惈鏈 create 閫昏緫,鍒犻櫎瀹规槗鐨 create 閫昏緫,绠鍖栦唬鐮 (#2741) (757e21d6)

4.0.14 (2020-07-27)

New Features
  • Polygon 涓 polygon 娣诲姞 square shape锛岀敤浜庣粯鍒舵鏂瑰舰鐭╅樀鍧楋紝鍚屾椂鏀寔 size 閫氶亾鏄犲皠
  • Facet 鍒嗛潰鏍囬鏀寔鏍煎紡鍖
  • Legend 鍥句緥鏂板 maxItemWidth 灞炴э紝瓒呭嚭鑷姩鐪佺暐
  • Annotation annotation 涓枃鏈粯鍒惰兘鍔涘寮猴紝鍙缃嚜鍔ㄧ缉鐣ヤ互鍙婅儗鏅
Bug Fixes
  • 鍧愭爣杞 verticalLimitLength 鐨勫弬鐓х墿鏄敾甯 (#2692) (85d94fca)
  • 淇 'top-right' 绫诲瀷鐨勫浘渚嬩綅缃富棰橀粯璁 maxItemWidth 涓嶇敓鏁堢殑闂

4.0.13 (2020-07-20)

Chores
Documentation Changes
New Features
  • path line area 涓夌被 Geometry 鏀寔 showSinglePoint 灞炴э紝鐢ㄤ簬鏀寔鍗曠偣瀛ょ珛鏁版嵁鐐圭殑缁樺埗 (#2666) (3f37f287)
Bug Fixes
Refactors

4.0.12 (2020-06-24)

Chores
  • 娣诲姞 lint-staged 閰嶇疆 (#2600) (a776ddd1)

  • 浼樺寲 pre-commit hooks锛実ithub ci 鏈嶅姟澶參骞朵笖鍋氫笉鍒板己琛岀害鏉燂紝淇℃伅寰堝鏄撳拷鐣ユ帀

Bug Fixes
  • highlight-by-x Action toggle() 澶辨晥鐨勯棶棰

4.0.11 (2020-06-18)

Documentation Changes
Bug Fixes
  • 2570: 淇 appendPadding 璁剧疆鍚庯紝鍥捐〃鏇存柊涓嶆柇缂╁皬鐨勯棶棰 (#2577) (402e7b01)
  • legend: 淇敼 legend 甯冨眬鐨勫楂橀檺鍒 (#2587) (055043f1)
  • error if chart destroyed during resize (#2547) (2290ed38)

4.0.10 (2020-06-09)

New Features
Bug Fixes
  • 2505: 淇鍥捐〃鏆楅粦涓婚鏃犺儗鏅壊鐨勯棶棰 (#2512) (1a025c0a)
  • annotation: fix regionFilter not work on sub view (#2531) (e8c58349)
  • line 40: replace '!=' with '!==' (#2519) (02a22a56)

4.0.9 (2020-05-28)

New Features
Bug Fixes

4.0.8 (2020-05-18)

Documentation Changes
New Features
  • slider: add formatMask property (aac56a86)
  • interaction: use get method (78e2c32f)
Bug Fixes
  • 2365: 淇鏋佸潗鏍囩郴鍦嗗姬鍧愭爣杞存枃鏈笉鍝嶅簲鍧愭爣绯 rotate 鐨勯棶棰 (#2424) (5c2bc3ff)
  • 2371: 淇鏈垽鏂 labels 涓虹┖瀵艰嚧鐨勯ゼ鍥惧浘渚嬭繃婊ら敊璇 (#2422) (a30eb71f)
  • 2377: registerTheme 鏃讹紝闇瑕佸拰鍩虹涓婚杩涜鍚堝苟 (#2416) (0c220765)
  • 2412: 淇 axis title offset 璁剧疆涓嶇敓鏁堢殑闂锛岄粯璁よ嚜鍔ㄨ绠 (#2417) (a220df31)
  • fix min/max value map to color (#2442) (b3d41214)

4.0.7 (2020-04-17)

Bug Fixes
  • do not set tooltip position when follow is false (62f5e279)
  • delegation: mouse leave failed (d3a30ed2)
  • element: 淇鑾峰彇 state style 鎶ラ敊鐨勯棶棰 (320e22f0)

4.0.6 (2020-04-10)

New Features
  • view 涓婃坊鍔犳墜鍔夸簨浠舵敮鎸 (e4f74a22)
Bug Fixes
  • geometry: geometry.clear() 浠ュ強 destroy() 鏃惰娓呯┖銆侀攢姣佸唴閮ㄥ彉閲 (c89ff974)
  • #2272: 褰撴槧灏勬暟鎹腑涓嶅瓨鍦 x 鍜 y 鏃讹紝涓嶇粯鍒 label (df60733e)
Performance Improvements
  • 鎬ц兘浼樺寲锛岃瑙 MR
Documentation Changes
  • 娣诲姞 Gestrue 鎵嬪娍浣跨敤鏂囨。 (2c459853)

4.0.5 (2020-04-08)

Bug Fixes
  • #2261: 淇 tooltip 鏁版嵁鏌ユ壘琛ュ叏鐨勯棶棰 (4b29feab)
  • #2241: 淇敼鍥捐〃鏇存柊杩囩▼涓紝tooltip 鏈強鏃舵秷澶辫屽嚭鐜板唴瀹逛负绌虹殑闂 (0e9e65f5)

4.0.4 (2020-04-03)

New Features
  • event: 娣诲姞 plot:enter 鍜 plot:leave 浜嬩欢 (1f9b96be)
  • interaction:
  • view:
    • 鏀寔 plot 涓婄殑绉诲姩浜嬩欢瑙﹀彂 (4a86b08a)
    • 娣诲姞涓浜涙柟娉曠殑鍒悕锛屼互鍏煎 3.x锛屼絾鏄繖浜涙柟娉曞皢浼氬湪 4.1 鐗堟湰涓Щ闄 (6356363a)
  • force-fit: add forceFit api for chart (719b61b3)
Bug Fixes
  • theme:
    • 淇涓婚鍒囨崲鍚庯紝Geometry 鏍峰紡鏈洿鏂扮殑闂 (7e75a543)
    • 淇鍦 chart 鏋勯犲嚱鏁颁腑璁剧疆 theme 瀵硅薄涓嶇敓鏁堢殑闂. Closed #2258 (6863a69f)
    • 绉婚櫎 label 鐨勬弿杈癸紝浼氬甫鏉ユц兘鎹熻 (99b799d9)
  • 绉婚櫎 coord.getRadius() 鐨 ts-ignore 娉ㄩ噴 (a02b7316)
  • geometry: 淇灞傚彔鐐瑰浘涓婁笅鍖洪棿鐐瑰叏閮ㄧ粯鍒剁殑闂銆侰losed #2202 (d7edf5e6)
  • view: 淇 syncScale() 璋冪敤鏃舵満涓嶅綋瀵艰嚧鍒嗛潰娓叉煋鎬ц兘鐩寸嚎涓嬮檷鐨勯棶棰 (d492c0ea)
  • #2264: 淇 canvas 鏍峰紡瀵艰嚧鐨 resize 闂, 淇瀹瑰櫒灞傜骇 (10200851)
  • #2232: fix 褰 legend item 鐐瑰嚮鐨勬椂鍊, 鍥句緥椤瑰彉灏 (19ca46ff)
  • #2173: fix legend overlap when in same direction (59db3b59)
  • #2212: fix when slider option has no start or end (36a3b5db)
  • #2222: fix scale pool memory leak (7f23a4c0)
  • #2215: fix chart min size = 100 (e49646d3)
  • #2195: fix autoFit 涓嶇敓鏁 (92d607ec)
Refactors
  • use unpkg other than browser field in package.json (0185949b)
  • theme: 绉婚櫎娉ㄥ唽鏍峰紡琛ㄦ満鍒讹紝鍙彁渚涙牴鎹牱寮忚〃鐢熸垚涓婚鐨勬柟娉 (9b0020ad)
  • geometry: 灏嗚幏鍙 shape 榛樿灞炴ф椂鏈轰粠 Element 缁樺埗鎻愬埌 Geometry getDrawCfg() (cf9b2f4f)
  • sync-scale: use Map for perf (76813745)

4.0.3 (2020-03-23)

New Features
  • axis: 鏀寔杞疆鏋佸潗鏍囧潗鏍囪酱鐨勬覆鏌擄紝 Closed #1744 (67a8beb0)
  • scale: 鏀寔鐢ㄦ埛鎸囧畾纭畾鏁版嵁 id 鐨勫瓧娈 (25caa91f)
  • tooltip:
    • position 灞炴ф柊澧 'auto' 鍊奸厤缃紝骞朵綔涓洪粯璁ゅ (8c3fda47)
    • tooltip 浣撻獙浼樺寲锛屽綋榧犳爣绂诲紑 tooltip 鍐呭妗嗘椂锛岄潪 locked 鐘舵佽嚜鍔ㄩ殣钘 (9f8fcad2)
    • 閫氳繃 pointer-events 灞炴ф潵杈惧埌 tooltip 韬查伩榧犳爣鐨勪氦浜掓晥鏋 (2e750aa4)(d5f1e21c)
  • event: 娣诲姞 element:statechange 浜嬩欢 (de161f49)
  • interaction: 鏂板 legend, axis highlight actions (ab256905)
  • action:
    • export getActionClass, extend action (db635b7e)
    • 娣诲姞 throttledebounce 灞炴ч厤缃 (a7e9f18d)
  • export 鎵鏈夌殑绫诲瀷瀹氫箟锛岀敓鎴愬搴旂殑 API 鏂囨。 (219126ed)
Bug Fixes
  • label:
    • 淇鏋佸潗鏍囦笅鐨勭涓涓 label 瀵归綈鐨勯棶棰 (8be4555d)
    • 淇婕忔枟鍥 label 闂锛氭洿鏂颁互鍙婂皷搴曟紡鏂楀浘鏈鍚庝竴涓 label 鐨勪綅缃敊璇紝Closed #1847 (cfd7c0a5)
    • 榛樿楗煎浘 label 杩炴帴绾块鑹插悓鍥惧舰鍏冪礌棰滆壊涓鑷 (78323aae)
    • 淇 interval 绫诲瀷 label 鍦ㄨ浆缃洿瑙掑潗鏍囩郴涓 position 璁$畻閿欒闂 (39d02120)
  • tooltip:
    • 淇 tooltip markers 娌℃湁姝g‘鏄剧ず/闅愯棌鐨勯棶棰 (394dad27)
    • 淇 tooltip 鏁版嵁涓虹┖鏃朵笉闅愯棌鐨勯棶棰 (76edffdb)
    • 淇 tooltip 鐩稿悓鏁版嵁鏄剧ず闅愯棌鍐嶆樉绀烘椂涓嶅睍绀虹殑闂锛孋losed #2174, #2175 (c3357c1f)
  • Action:
    • active-region: 淇鑳屾櫙妗嗚绠楅敊璇殑闂 (7b5f651b)
  • options: 淇 chart.updateOptions() 鏇存柊澶辫触鐨勯棶棰 (b1dff91b)
  • event: 璋冩暣 afterpaint 鐨勬姏鍑烘椂鏈 (f1f8206c)
  • geometry: 淇 element 鎵撴爣绛栫暐瀵艰嚧鐨勬暟鎹湭琚叏閮ㄧ粯鍒剁殑闂锛孋losed #2141 (071fa7c2)
  • data: 淇浣跨敤鏁版嵁寮曠敤閫犳垚鏁版嵁鏈洿鏂扮殑闂 (bb258fc6)
  • event 淇褰撻紶鏍囧湪鍥捐〃涓婇〉闈㈡棤娉曟粴鍔ㄧ殑闂锛孋losed #2111
Refactors
  • label:
    • 閲嶆瀯 GeometryLabel銆傚皢 labels 缁勪欢鐨勭敓鎴愭覆鏌撶Щ鍏 GeomtryLabel 涓 (4537b965)
    • 閲嶆瀯 Label 鐩稿叧妯″潡锛屽皢楗煎浘 label 鐨勫竷灞璋冩暣鍒 LabelLayout 涓 (402d6c52)
Chores
  • 鏇存柊鍥捐〃婕旂ず瀹炰緥锛屼紭鍖栧疄鐜颁唬鐮侊紝鍚屾椂鏂版坊鍔犲姩鎬佹皵娉″浘浠ュ強甯﹀潗鏍囪酱鐨勬瀬鍧愭爣涓嬬殑灞傚彔鏌辩姸鍥
2020-03-22 18-17-49.2020-03-22 18_20_32.gif image.png
Documentation Changes
  • 鏇存柊浜嬩欢銆佷氦浜掍互鍙 FAQ 鏂囨。

4.0.2 (2020-03-16)

New Features
  • 灏 Util 鍦ㄤ粠 core.ts 绉诲埌 src/index.ts 涓 (e8d05d16)
  • 娣诲姞涓浜涚煩闃靛彉鎹㈢浉鍏崇殑宸ュ叿鏂规硶 (921a45f3)
  • interaction:
Bug Fixes
  • slider: when changeData, slider min max text should be update (b06c9ee3)
  • auto-fix: fix height when autoFit and container has padding (1102a4a7)
  • annotation: 淇 chart.annotation() 鎺ュ彛涓 animateOption 灞炴т笉鐢熸晥鐨勯棶棰橈紝Closed #2146 (6a3ecba1)
  • scale: 淇鏃ユ湡姝e垯琛ㄨ揪寮忓皢 '20200229' 鍒ゆ柇涓 time 绫诲瀷鐨勯棶棰, related #2115 (f31ccca7)

4.0.1 (2020-03-09)

Chores
  • 鏇存柊缃戠珯 H5 妯℃澘 (624e5023)
New Features

4.0.0 姝e紡鍙戝竷 (2020-03-01)

浣滀负鍥惧舰璇硶锛坱he Grammar of Graphics锛夌殑鍓嶇瀹炵幇锛孏2 宸茬粡缁忓巻澶氫釜鐗堟湰鐨勮凯浠c傛湰娆 G2 4.0 鏄竴涓柊鐨勮捣鐐癸紝鎴戜滑瀵瑰簳灞傛灦鏋勫仛浜嗗ぇ閲忕殑閲嶆瀯宸ヤ綔锛孏2 浼氭洿鍔犲叧娉ㄤ簬锛鍥惧舰璇硶锛屼氦浜掕娉浠ュ強鍙鍖栫粍浠朵綋绯鐨勫缓璁俱傛垜浠笇鏈 G2 4.0 浼氭垚涓轰竴涓笓涓氱殑銆佺粰鐢ㄦ埛甯︽潵鏇村鍙兘鎬х殑鍙鍖栧簳灞傚紩鎿庯紝鍦ㄦ弧瓒充紶缁熷瀷缁熻鍥捐〃闇姹傜殑鍩虹涓婏紝鑳藉鏇村ソ鍦拌祴鑳戒簬锛堜絾涓嶉檺浜庯級锛

  • 璁╁紑鍙戣呭熀浜 G2 4.0 鍙互鏇村揩鏇村ソ鍦板皝瑁呬笂灞傚浘琛ㄥ簱
  • 璁╀氦浜掑紡鍙鍖栨洿绠鍗
  • 鎴愪负鍙鍖栭鍩熺殑涓撲笟宸ュ叿

铏界劧鎴戜滑瀵 G2 鍐呴儴杩涜浜嗗ぇ瑙勬ā鐨勯噸鏋勫伐浣滐紝鍖呮嫭鏁版嵁澶勭悊娴佺▼锛堝紩鍏ユ暟鎹洿鏂版満鍒讹級锛屽浘琛ㄧ粍浠讹紝view 娓叉煋鏇存柊閫昏緫浠ュ強浜嬩欢銆佷氦浜掓満鍒舵敼閫犵瓑锛屼絾鏄负浜嗕繚闅滅敤鎴烽」鐩兘澶熸洿骞虫粦寰楀崌绾э紝G2 4.0 淇濇寔浜嗘渶澶х▼搴︿笂鐨勫吋瀹癸紝浣嗘槸浠嶇劧鏈変竴閮ㄥ垎 breaking change 闇瑕佹敞鎰忋

鍙樻洿璇存槑

鏁翠綋鍙樺寲

  • 鍏ㄩ潰鎷ユ姳 TypeScript銆
  • 鍏ㄦ柊鐨勫彲瑙嗗寲缁勪欢锛氶潰鍚戜氦浜掞紝浣撻獙浼橀泤銆
  • 寮哄ぇ鐨 View 妯″潡锛氬彲鍗曠嫭浣跨敤锛屽叿澶囧畬澶囩殑鍙鍖栫粍浠躲佷簨浠讹紝鏀寔 View 宓屽浠ュ強鑷姩甯冨眬銆
  • 鍏ㄦ柊鐨勪氦浜掕娉曘
  • 缁樺浘寮曟搸鍗囩骇鑷 G 0.4 鐗堟湰锛屾敮鎸佸弻寮曟搸鍒囨崲銆
  • 寮曞叆鏁版嵁鏇存柊鏈哄埗銆
  • 鍔ㄧ敾鏈哄埗鏀归狅紝鏇寸粏绮掑害锛屼綋楠屾洿濂姐
  • 妯″潡鍖栫鐞嗭紝鎻愪緵鏇村姞鐏垫椿鐨勬墿灞曟満鍒躲

API 鍙樻洿

G2 4.0 鍦ㄥ姛鑳戒笂鍏ㄩ潰鍏煎 3.x 鐨勫姛鑳斤紝鍦 API 鎺ュ彛涓婏紝鎴戜滑杩涜浜嗕竴浜涗紭鍖栵紝鍦ㄦ渶澶х▼搴﹀吋瀹 3.x 璇硶鐨勫熀纭涓婏紝鎻愪緵浜嗗鐢ㄦ埛鏇村姞鍙嬪ソ锛屾洿鏄撶悊瑙g殑鍑芥暟鍛藉悕浠ュ強鏇村悎鐞嗙殑閰嶇疆椤圭粨鏋勶紝鍏蜂綋鐨勫彉鍖栬褰曞涓嬶細

涓嶅吋瀹规敼鍔
  • chart.source() 鎺ュ彛搴熷純锛岃浣跨敤 chart.data() 鎺ュ彛锛屽悓鏃跺垪瀹氫箟璇烽氳繃 chart.scale()聽 鎺ュ彛杩涜瀹氫箟銆
  • chart.coord() 鎺ュ彛搴熷純锛岃浣跨敤 chart.coordinate()
  • chart.guide() 鎺ュ彛搴熷純锛岃浣跨敤 chart.annotation()锛屽悓鏃朵笉鍐嶆敮鎸 chart.guide().html()
  • chart.view()聽 鎺ュ彛搴熷純锛岃浣跨敤 chart.createView()
  • chart.interact()聽 鎺ュ彛搴熷純锛岃浣跨敤 chart.interaction()
  • chart.repaint()聽 鎺ュ彛搴熷純锛岃浣跨敤 chart.render(update: boolean) 鎺ュ彛銆
  • G2.Global 绉婚櫎锛岄粯璁ょ殑涓婚閰嶇疆鍙互閫氳繃浠ヤ笅鏂瑰紡鑾峰彇锛
// 鏂瑰紡 1
import { getTheme } from '@antv/g2';
const defaultTheme = getTheme();

// 鏂瑰紡 2锛岄氳繃 chart 绀轰緥鑾峰彇褰撳墠涓婚
const theme = chart.getTheme();
  • geometry.active()聽 搴熷純锛岃浣跨敤 geometry.state() 鎺ュ彛銆
  • geometry.select()聽 搴熷純锛岃浣跨敤 geometry.state() 鎺ュ彛銆
  • geometry.opacity() 搴熷純锛岃浣跨敤 geometry.color()聽 涓娇鐢ㄥ甫閫忔槑搴︾殑棰滆壊鎴栬 geometry.style()聽 鎺ュ彛銆
  • 浠ヤ笅璇硶绯栦笉鍐嶆敮鎸侊細
    • pointJitter()聽 搴熷純锛岃浣跨敤 point().adjust('jitter')
    • pointDodge()聽 搴熷純锛岃浣跨敤 point().adjust('dodge')
    • intervalStack() 搴熷純锛岃浣跨敤 interval().adjust('stack')
    • intervalDodge() 搴熷純锛岃浣跨敤 interval().adjust('dodge')
    • intervalSymmetric() 搴熷純锛岃浣跨敤 interval().adjust('symmetric')
    • areaStack() 搴熷純锛岃浣跨敤 area().adjust('stack')
    • schemaDodge() 搴熷純锛岃浣跨敤 聽schema().adjust('stack')
  • Venn聽 浠ュ強 Violin聽 鍑犱綍鏍囪鏆傛椂绉婚櫎锛屽悗缁冭檻浠ユ洿濂界殑鏂瑰紡鏀寔銆
  • 绉婚櫎 Interval 鍑犱綍鏍囪浠ヤ笅涓や釜 shape: 'top-line' 鍙 聽'liquid-fill-gauge'锛岀敤鎴峰彲浠ラ氳繃鑷畾涔 Shape 鏈哄埗鑷繁瀹炵幇銆
  • 绉婚櫎 tail 绫诲瀷鐨勫浘渚嬨
  • 鍐呯疆甯搁噺閲嶅懡鍚嶏紝涓鑷翠娇鐢ㄥ皬鍐 + '-' 鍛藉悕瑙勫垯锛屾瘮濡 shape('hollowCircle') 鍙樻洿涓 shape('hollow-circle')
閰嶇疆椤逛互鍙婃帴鍙e彉鏇

鎴戜滑鍦 4.0 涓浠ヤ笅鎺ュ彛浠ュ強涓浜涙帴鍙d腑鐨勫睘鎬ц繘琛屼簡閮ㄥ垎鍙樻洿锛屽湪鍏煎 3.x 鍘熸湁鍔熻兘鐨勫熀纭涓婏紝璁╅厤缃」鏇村叿璇箟锛屽悓鏃剁粨鏋勬洿鍔犲悎鐞嗭紝鍏蜂綋璇峰弬鑰 API 鏂囨。銆

chart.axis('value', {
  label: {
    style: {
      textAlign: 'center',
    }, // 璁剧疆鍧愭爣杞存枃鏈牱寮
  },
  line: {
    style: {
      stroke: '#E9E9E9',
      lineDash: [3, 3],
    }, // 璁剧疆鍧愭爣杞寸嚎鏍峰紡
  },
  grid: {
    line: {
      style: {
        lineDash: [3, 3],
      },
    }, // 璁剧疆鍧愭爣绯绘爡鏍兼牱寮
  },
});
  • chart.tooltip() 閰嶇疆椤规洿鏂帮紝鍚屾椂灏 G2 3.x 鐗堟湰涓竴浜涢拡瀵圭壒瀹氬浘琛ㄧ殑鍐呯疆瑙勫垯鍒犻櫎锛岄渶瑕佺敤鎴疯嚜宸遍氳繃鎻愪緵鐨勯厤缃」杩涜閰嶇疆锛屽叿浣撻厤缃睘鎬ц瑙 API
  • chart.legend()聽 閰嶇疆椤规洿鏂帮紝璇﹁ API
  • chart.axis()聽 閰嶇疆椤规洿鏂帮紝璇﹁ API
  • chart.annotation()聽 鍚勪釜绫诲瀷鐨 annotation 閰嶇疆椤规洿鏂帮紝璇﹁ API
  • geometry().style() 鏂规硶鐨勫洖璋冨嚱鏁板啓娉曞彉鏇达紝涓嶅啀鏀寔涓涓厤缃睘鎬т竴涓洖璋冪殑鏂瑰紡锛岃屾槸浣跨敤涓涓洖璋冿細
style('a', (aVal) => {
  if (a === 1) return { fill: 'red' };
  return { fill: 'blue' };
});

璇﹁ API

  • geometry.label() 鎺ュ彛鏇存柊锛屼笉鍐嶆敮鎸 html 绫诲瀷鐨 label锛岃瑙 API