| <div data-server-rendered="true" id="__nuxt"><!----><div id="__layout"><div><nav role="navigation" class="navbar navbar-default navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" class="navbar-toggle collapsed"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="https://echarts.apache.org/en/index.html" class="navbar-brand"><img src="https://echarts.apache.org/en/images/logo.png?_v_=20240226" alt="echarts logo" class="navbar-logo"></a></div><div id="navbar-collapse" class="collapse navbar-collapse"><ul class="nav navbar-nav navbar-left"><li id="nav-index"><a href="https://echarts.apache.org/en/index.html">Home</a></li><li id="nav-doc" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Docs<b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://echarts.apache.org/en/feature.html">Features</a></li><li><a href="https://echarts.apache.org/handbook/en/get-started/">Handbook</a></li><li><a href="https://echarts.apache.org/en/api.html">API</a></li><li><a href="https://echarts.apache.org/en/option.html">Chart Configuration</a></li><li><a href="https://echarts.apache.org/en/changelog.html">Changelog</a></li><li><a href="https://echarts.apache.org/en/faq.html">FAQ</a></li><li><a href="https://echarts.apache.org/handbook/en/basics/release-note/v6-upgrade-guide">V6 Upgrade Guide</a></li></ul></li><li id="nav-download" class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Download<b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://echarts.apache.org/en/download.html">Download</a></li><li><a href="https://echarts.apache.org/en/download-theme.html">Download Themes</a></li><li><a href="https://github.com/apache/echarts-custom-series" target="_blank">Download Custom Series<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://echarts.apache.org/en/download-extension.html">Download Extensions</a></li></ul></li><li id="nav-examples"><a href="https://echarts.apache.org/examples/en/index.html">Examples</a></li><li id="nav-resources"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Resources<b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://echarts.apache.org/en/spreadsheet.html">Spread Sheet Tool</a></li><li><a href="https://echarts.apache.org/en/theme-builder.html">Theme Builder</a></li><li><a href="https://echarts.apache.org/en/cheat-sheet.html">Cheat Sheet</a></li><li><a href="https://echarts.apache.org/en/resources.html">More Resources</a></li></ul></li><li id="nav-contribute"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Community<b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://echarts.apache.org/en/events.html">Events</a></li><li><a href="https://echarts.apache.org/en/committers.html">Committers</a></li><li><a href="https://echarts.apache.org/en/maillist.html">Mailing List</a></li><li><a href="https://echarts.apache.org/en/contributing.html">How to Contribute</a></li><li><a href="https://echarts.apache.org/en/dependencies.html">Dependencies</a></li><li><a href="https://echarts.apache.org/en/coding-standard.html">Code Standard</a></li><li><a href="https://github.com/apache/echarts" target="_blank">Source Code (GitHub)<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://github.com/apache/echarts/issues" target="_blank">Issues (GitHub)<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li><li id="nav-others"><a href="#" data-toggle="dropdown" class="dropdown-toggle">ASF<b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://www.apache.org/" target="_blank">Apache Software Foundation<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://echarts.apache.org/en/security.html">Security</a></li><li><a href="https://www.apache.org/licenses/" target="_blank">License<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://www.apache.org/events/current-event" target="_blank">Events<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://www.apache.org/foundation/sponsorship.html" target="_blank">Sponsorship<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li><a href="https://www.apache.org/foundation/thanks.html" target="_blank">Thanks<svg width="15px" height="15px" viewbox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-external-link"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li></ul><ul class="nav navbar-nav navbar-right"><li id="nav-homeen"><a href="javascript:;" onclick='changeLang("zh")'>中文</a></li><li id="nav-github"><a href="https://github.com/apache/echarts" target="_blank"><svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-262.000000, -2480.000000)" fill="#333"><g transform="translate(252.000000, 2470.000000)"><path d="M29.9006449,27.904446 C28.5016932,29.8668872 26.6944882,31.2248797 24.4790301,31.9784237 C24.2211218,32.0272886 24.0325745,31.9931534 23.9133882,31.876018 C23.7942019,31.7588827 23.7346171,31.6119968 23.7346338,31.4353603 L23.7346338,28.3376019 C23.7346338,27.3880159 23.4865017,26.6930482 22.9902375,26.2526987 C23.5347812,26.1938141 24.024319,26.1058042 24.458851,25.9886688 C24.893383,25.8715335 25.3422785,25.680801 25.8055376,25.4164714 C26.2687966,25.1521418 26.6556591,24.8267354 26.9661251,24.4402521 C27.276591,24.0537688 27.5296112,23.5398222 27.7251857,22.8984123 C27.9207602,22.2570024 28.0185475,21.5203805 28.0185475,20.6885464 C28.0185475,19.504056 27.6414612,18.4959023 26.8872886,17.6640854 C27.240536,16.7733669 27.2023419,15.7752328 26.7727063,14.6696833 C26.5050218,14.5813565 26.1181593,14.6352226 25.6121189,14.8312818 C25.1060784,15.0273409 24.6669591,15.2428141 24.2947609,15.4777015 L23.7502256,15.8300324 C22.8622108,15.5757225 21.9454689,15.4485675 21,15.4485675 C20.0545311,15.4485675 19.1377892,15.5757225 18.2497744,15.8300324 C18.0969813,15.7223001 17.8940788,15.5901353 17.641067,15.433538 C17.3880551,15.2769408 16.9892689,15.0884007 16.4447085,14.8679176 C15.9001481,14.6474346 15.4894467,14.5813479 15.2126043,14.6696576 C14.7921266,15.7758408 14.7588206,16.7739749 15.1126863,17.6640597 C14.3585137,18.4958938 13.9814275,19.5040475 13.9814275,20.6885208 C13.9814275,21.5203548 14.0792147,22.2544676 14.2747892,22.8908591 C14.4703637,23.5272505 14.720944,24.0411971 15.0265302,24.4326988 C15.3321164,24.8242005 15.7165391,25.1521076 16.1797981,25.41642 C16.6430571,25.6807325 17.0919527,25.871465 17.5264847,25.9886174 C17.9610167,26.1057699 18.4505545,26.1937799 18.9950982,26.2526473 C18.6131238,26.60467 18.3790461,27.1085884 18.292865,27.7644025 C18.0924107,27.8621152 17.8775846,27.935404 17.6483866,27.984269 C17.4191886,28.0331339 17.1469167,28.0575663 16.831571,28.0575663 C16.5162253,28.0575663 16.203612,27.9523346 15.8937309,27.7418712 C15.5838499,27.5314078 15.3189144,27.225424 15.0989244,26.8239198 C14.9174043,26.5107253 14.6857747,26.2564154 14.4040358,26.0609899 C14.1222969,25.8655645 13.8860801,25.7481209 13.6953854,25.708659 L13.4084408,25.6644956 C13.2079866,25.6644956 13.069557,25.6864188 12.9931521,25.7302654 C12.9167472,25.7741119 12.8929083,25.8304873 12.9216353,25.8993914 C12.9503623,25.9682956 12.9934529,26.0368829 13.050907,26.1051533 C13.1083611,26.1734238 13.1703941,26.2319915 13.2370061,26.2808564 L13.336924,26.3541538 C13.5471712,26.4518665 13.7549701,26.6378974 13.9603209,26.9122466 C14.1656716,27.1865958 14.3160164,27.4362043 14.4113555,27.661072 L14.554364,27.9983735 C14.67843,28.3704354 14.8886689,28.6714094 15.1850804,28.9012955 C15.481492,29.1311815 15.8014334,29.2780674 16.1449045,29.3419532 C16.4883756,29.405839 16.8202406,29.4399742 17.1404995,29.4443589 C17.4607584,29.4487435 17.7256939,29.4315218 17.935306,29.3926936 L18.2644137,29.3335008 C18.2644137,29.7055627 18.2668619,30.1412107 18.2717584,30.6404447 C18.2766548,31.1396787 18.279103,31.4040083 18.279103,31.4334334 C18.279103,31.6094533 18.21707,31.7563392 18.093004,31.8740912 C17.9689379,31.9918431 17.7779507,32.0259784 17.5200424,31.9764969 C15.3045843,31.22297 13.4973793,29.8649774 12.0984276,27.9025191 C10.6994759,25.9400608 10,23.7305118 10,21.2738721 C10,19.2281225 10.4916769,17.3417791 11.4750308,15.6148418 C12.4583846,13.8879045 13.7928551,12.5202092 15.4784422,11.5117558 C17.1640293,10.5033024 19.0045486,9.99938397 21,10.0000006 C22.9954514,10.0006172 24.8359707,10.5045356 26.5215578,11.5117558 C28.2071449,12.518976 29.5416154,13.8866713 30.5249692,15.6148418 C31.5083231,17.3430123 32,19.2293557 32,21.2738721 C31.9990725,23.7324558 31.2995966,25.9420048 29.9006449,27.904446 Z"></path></g></g></g></svg></a></li></ul></div></div></nav> <div class="page-main"><div class="page-content handbook-content single-page container-fluid row flex-xl-nowrap"><div class="bd-sidebar col-sm-3 col-md-2 closed"><div class="bd-docs-nav"><ul class="nav bd-sidenav nav-root level0"><li class="nav-item"><a href="/echarts-handbook/en/get-started" class="nav-link"><span class="title">Get Started</span></a> <ul class="nav bd-sidenav level1" style="display:none"></ul></li><li class="nav-item"><div class="nav-link"><span class="title">Basics</span></div> <ul class="nav bd-sidenav level1"><li class="nav-item"><a href="/echarts-handbook/en/basics/download" class="nav-link"><span class="title">Download ECharts</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/import" class="nav-link"><span class="title">Import ECharts</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><!----><li class="nav-item"><a href="/echarts-handbook/en/basics/help" class="nav-link"><span class="title">Get Help</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a class="nav-link"><span class="title">What's New</span> <span class="glyphicon glyphicon-menu-up"></span></a> <ul class="nav bd-sidenav level2"><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/v6-feature" aria-current="page" class="nav-link nuxt-link-exact-active nuxt-link-active"><span class="title">ECharts 6 Features</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/v6-upgrade-guide" class="nav-link"><span class="title">Migration from v5 to v6</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/v5-feature" class="nav-link"><span class="title">5.0</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/v5-upgrade-guide" class="nav-link"><span class="title">Migration from v4 to v5</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/5-2-0" class="nav-link"><span class="title">5.2</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/5-3-0" class="nav-link"><span class="title">5.3</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/5-4-0" class="nav-link"><span class="title">5.4</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/5-5-0" class="nav-link"><span class="title">5.5</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/basics/release-note/5-6-0" class="nav-link"><span class="title">5.6</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li></ul></li></ul></li><li class="nav-item"><div class="nav-link"><span class="title">Concepts</span></div> <ul class="nav bd-sidenav level1"><li class="nav-item"><a href="/echarts-handbook/en/concepts/chart-size" class="nav-link"><span class="title">Chart Container</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><!----><!----><li class="nav-item"><a href="/echarts-handbook/en/concepts/style" class="nav-link"><span class="title">Style</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/concepts/dataset" class="nav-link"><span class="title">Dataset</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/concepts/data-transform" class="nav-link"><span class="title">Data Transform</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><!----><li class="nav-item"><a href="/echarts-handbook/en/concepts/axis" class="nav-link"><span class="title">Axis</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/concepts/visual-map" class="nav-link"><span class="title">Visual Mapping</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/concepts/legend" class="nav-link"><span class="title">Legend</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/concepts/event" class="nav-link"><span class="title">Event and Action</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li></ul></li><li class="nav-item"><div class="nav-link"><span class="title">How To Guides</span></div> <ul class="nav bd-sidenav level1"><li class="nav-item"><a class="nav-link"><span class="title">Common Charts</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a class="nav-link"><span class="title">Bar</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level3" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/bar/basic-bar" class="nav-link"><span class="title">Basic Bar</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/bar/stacked-bar" class="nav-link"><span class="title">Stacked Bar</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/bar/bar-race" class="nav-link"><span class="title">Bar Racing</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><!----><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/bar/waterfall" class="nav-link"><span class="title">Waterfall</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Line</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level3" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/line/basic-line" class="nav-link"><span class="title">Basic Line</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/line/stacked-line" class="nav-link"><span class="title">Stacked Line</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/line/area-line" class="nav-link"><span class="title">Area Chart</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/line/smooth-line" class="nav-link"><span class="title">Smoothed Line</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/line/step-line" class="nav-link"><span class="title">Step Line</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Pie</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level3" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/pie/basic-pie" class="nav-link"><span class="title">Basic Pie</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/pie/doughnut" class="nav-link"><span class="title">Ring Style</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/pie/rose" class="nav-link"><span class="title">Rose Style</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Scatter</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level3" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/chart-types/scatter/basic-scatter" class="nav-link"><span class="title">Basic Scatter</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Common Components</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a class="nav-link"><span class="title">Geo</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level3" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/component-types/geo/svg-base-map" class="nav-link"><span class="title">SVG Base Map</span></a> <ul class="nav bd-sidenav level4" style="display:none"></ul></li></ul></li></ul></li><!----><li class="nav-item"><a class="nav-link"><span class="title">Cross Platform</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/cross-platform/server" class="nav-link"><span class="title">Server Side Rendering</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Data</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/data/dynamic-data" class="nav-link"><span class="title">Dynamic Data</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><!----></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Label</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/label/rich-text" class="nav-link"><span class="title">Rich Text</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Animation</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/animation/transition" class="nav-link"><span class="title">Data Transition</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li></ul></li><li class="nav-item"><a class="nav-link"><span class="title">Interaction</span> <span class="glyphicon glyphicon-menu-down"></span></a> <ul class="nav bd-sidenav level2" style="display:none"><li class="nav-item"><a href="/echarts-handbook/en/how-to/interaction/drag" class="nav-link"><span class="title">Drag</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li><!----><li class="nav-item"><a href="/echarts-handbook/en/how-to/interaction/coarse-pointer" class="nav-link"><span class="title">Intelligent Pointer Snapping</span></a> <ul class="nav bd-sidenav level3" style="display:none"></ul></li></ul></li></ul></li><li class="nav-item"><div class="nav-link"><span class="title">Best Practices</span></div> <ul class="nav bd-sidenav level1"><!----><li class="nav-item"><a href="/echarts-handbook/en/best-practices/canvas-vs-svg" class="nav-link"><span class="title">Canvas vs. SVG</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/best-practices/aria" class="nav-link"><span class="title">Aria</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li><li class="nav-item"><a href="/echarts-handbook/en/best-practices/security" class="nav-link"><span class="title">Security Guidelines</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li></ul></li><li class="nav-item"><div class="nav-link"><span class="title">Edit Handbook</span></div> <ul class="nav bd-sidenav level1"><li class="nav-item"><a href="/echarts-handbook/en/meta/edit-guide" class="nav-link"><span class="title">Edit Guide</span></a> <ul class="nav bd-sidenav level2" style="display:none"></ul></li></ul></li></ul></div> <div class="open-sidebar"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg></div></div> <div class="bd-content col-sm-7 pl-sm-2 col-12"><div class="post-content content"><div><div class="post-inner"><!----> <div class="nuxt-content"><article><h1 id="apache-echarts-6-new-features" tabindex="-1">Apache ECharts 6 New Features</h1> <p>Twelve years ago, ECharts was first released on GitHub, planting the seed for an open-source journey.</p> <p>From a simple charting tool to a visualization powerhouse supporting millions of developers; from a single front-end charting library to a comprehensive technology system covering mobile, large screens, and server-side rendering—over these 12 years, we've witnessed ECharts' continuous technical breakthroughs and have been delighted to see developers worldwide create countless stunning data stories with ECharts.</p> <p>Now, Apache ECharts 6.0 is officially released, bringing 12 major upgrades to take your data visualization to the next level.</p> <h2 id="feature-overview" tabindex="-1">Feature Overview</h2> <p>Twelve years of accumulation, all for more ultimate visual expression. The core strength of Apache ECharts has always come from a deep understanding of developers' real challenges. When defining the direction for 6.0, the question was clear: <strong>How can we make complex data presentation both powerful and elegant?</strong></p> <p>This drove us to evolve deeply around three core dimensions:</p> <ul><li><strong>More professional visual presentation</strong>: From a meticulously crafted default theme to intelligent dark mode switching, ensuring charts have a professional look and seamlessly integrate into modern applications.</li> <li><strong>Expanding the boundaries of data expression</strong>: New chart types and features to handle complex scenarios and enable intuitive expression of deep data.</li> <li><strong>Unleashing freedom of composition</strong>: From the revolutionary matrix coordinate system to reusable custom series and optimized axis labels—empowering developers to freely compose and turn creativity into unconstrained visual works.</li></ul> <p>We have made 12 upgrades across these three core dimensions. These are not just simple feature additions, but a solid foundation for building the next generation of data-driven applications. They all point to one goal: <strong>to make ECharts powerful, reliable, and stable in the background, leaving the stage and spotlight for your creative expression.</strong></p> <p>Below, we introduce these twelve upgrades in detail:</p> <ul><li><strong>More professional visual presentation</strong> <ul><li><strong>1. Brand New Default Theme</strong>: Modern design language for professional data expression</li> <li><strong>2. Dynamic Theme Switching</strong>: Seamless runtime theme switching for multi-theme scenarios</li> <li><strong>3. Dark Mode Support</strong>: Automatically adapts to system dark/light mode for better UX</li></ul></li> <li><strong>Expanding the boundaries of data expression</strong> <ul><li><strong>4. New Chord Chart</strong>: Visualize complex relationships and distributions</li> <li><strong>5. New Beeswarm Chart</strong>: Smartly expand overlapping data points into a honeycomb layout</li> <li><strong>6. New Scatter Jittering</strong>: Add jitter to scatter plots for better readability of dense data</li> <li><strong>7. New Broken Axis</strong>: Easily present data with large magnitude differences</li> <li><strong>8. Enhanced Stock Trading Charts</strong>: Improved label capabilities and more out-of-the-box trading charts</li></ul></li> <li><strong>Unleashing freedom of composition</strong> <ul><li><strong>9. New Matrix Coordinate System</strong>: Freely combine chart types and components like a table</li> <li><strong>10. Enhanced Custom Series</strong>: Support npm publishing and dynamic registration for code reuse</li> <li><strong>11. New Custom Charts</strong>: Violin, contour, stage, bar range, and line range charts</li> <li><strong>12. Axis Label Optimization</strong>: Smarter default axis label layout to prevent overflow and overlap</li></ul></li></ul> <p>With these upgrades, Apache ECharts 6.0 helps users create more charts more flexibly and conveniently, truly achieving "unlimited possibilities in charting"!</p> <h2 id="feature-details" tabindex="-1">Feature Details</h2> <h3 id="1.-brand-new-default-theme" tabindex="-1">1. Brand New Default Theme</h3> <p>During the development of ECharts 6.0, we analyzed real user scenarios and found that over 70% of developers use the default theme. This made us realize: an excellent default theme should not only be aesthetically pleasing but also meet the general needs of various business scenarios.</p> <p>The new theme system uses design tokens to reconstruct colors, spacing, and other design elements, <strong>making different chart types and components more harmonious and consistent</strong>.</p> <img data-src="images/feature-v6/1-default-theme.png" width="600px"> <p>Although the 6.0 theme has significant changes from 5.x, we provide a <a href="https://github.com/apache/echarts/blob/master/theme/v5.js">v5.js</a> theme file for developers who want to use new features but keep the old style for quick migration.</p> <h3 id="2.-dynamic-theme-switching" tabindex="-1">2. Dynamic Theme Switching</h3> <p>In previous versions, changing a chart's theme required disposing of the chart instance and re-initializing, which could negatively impact user experience due to repeated animations. In the new version, we implemented <strong>dynamic theme switching</strong> (see documentation), significantly improving the user experience.</p> <img data-src="images/feature-v6/2-switch-themes.gif" width="600px"> <h3 id="3.-dark-mode-support" tabindex="-1">3. Dark Mode Support</h3> <p>With dynamic theme registration and switching, a typical scenario is <strong>listening to the system's dark mode and dynamically adjusting the chart's theme</strong>.</p> <img data-src="images/feature-v6/3-responsive-themes.gif" width="600px"> <p>This is crucial for business scenarios supporting dark mode, ensuring the application interface matches the system theme and greatly enhancing user experience.</p> <p>Here's how to listen for system dark mode and change the chart theme:</p> <div class="md-code-block"><div class="nuxt-content-highlight"><pre class="language-js line-numbers"><code><span class="token keyword">const</span> darkModeMediaQuery <span class="token operator">=</span> window<span class="token punctuation">.</span><span class="token function">matchMedia</span><span class="token punctuation">(</span><span class="token string">'(prefers-color-scheme: dark)'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> |
| <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre></div> <!----> <div class="clipboard" data-v-479657ca><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6" data-v-479657ca><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6" data-v-479657ca><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3" data-v-479657ca></path></svg></svg></div></div> <h3 id="4.-new-chord-chart" tabindex="-1">4. New Chord Chart</h3> <p>Chord charts intuitively show flows and weights in complex relationship networks, ideal for scenarios like financial transactions and social networks. ECharts innovatively supports <strong>using gradient colors from source and target nodes for edges, creating unique visual effects</strong>. See <a href="https://echarts.apache.org/option.html#series-chord">series-chord</a>.</p> <img data-src="images/feature-v6/4-chord.gif" width="600px"> <h3 id="5.-new-beeswarm-chart" tabindex="-1">5. New Beeswarm Chart</h3> <p>Traditional scatter plots can become overcrowded on category axes. Beeswarm charts use non-numeric axis offsets to <strong>distribute points without overlap while preserving value axis accuracy</strong>. Set <a href="https://echarts.apache.org/option.html#xAxis.jitter">jitter</a> to a non-zero value and <a href="https://echarts.apache.org/option.html#xAxis.jitterOverlap">jitterOverlap</a> to <code>false</code> to enable beeswarm charts.</p> <img data-src="images/feature-v6/5-beeswarm.png" width="600px"> <h3 id="6.-new-scatter-jittering" tabindex="-1">6. New Scatter Jittering</h3> <p>Scatter jittering adds random offsets to non-data dimensions, <strong>solving the problem of overly dense data points</strong>.</p> <p>Without jittering, it's hard to see the distribution when data is dense:</p> <img data-src="images/feature-v6/6-jittering-off.png" width="600px"> <p>With jittering enabled, the densest range (6-8) becomes clear. Compared to beeswarm, scatter jittering offers better performance.</p> <img data-src="images/feature-v6/6-jittering-on.png" width="600px"> <p>Set <a href="https://echarts.apache.org/option.html#xAxis.jitter">jitter</a> to a non-zero value and <a href="https://echarts.apache.org/option.html#xAxis.jitterOverlap">jitterOverlap</a> to <code>true</code> to enable scatter jittering.</p> <h3 id="7.-new-broken-axis" tabindex="-1">7. New Broken Axis</h3> <p>Broken axis is a visualization technique for showing data with large magnitude differences. In ECharts 6.0, we innovatively implemented a <strong>torn-paper effect for broken axes</strong>, making the meaning more intuitive, and supporting click-to-expand to restore the real data ratio.</p> <img data-src="images/feature-v6/7-break-axis.gif" width="600px"> <h3 id="8.-enhanced-stock-trading-charts" tabindex="-1">8. Enhanced Stock Trading Charts</h3> <p>ECharts 6.0 deeply optimizes for financial trading scenarios, enhancing label positioning relative to coordinate systems to help developers quickly build professional-grade trading analysis tools.</p> <p>Below is a comprehensive stock trading chart using ECharts, combining <strong>time-sharing, MACD, volume, order book, and depth chart</strong>:</p> <img data-src="images/feature-v6/8-stock.png" width="600px"> <p>These examples help developers quickly meet financial trading needs. For example, displaying numbers in the four corners of the chart can be achieved with <a href="https://echarts.apache.org/option.html#series-line.markPoint.data.relativeTo">relativeTo</a>.</p> <h3 id="9.-new-matrix-coordinate-system" tabindex="-1">9. New Matrix Coordinate System</h3> <p>The above example also uses the new matrix coordinate system in ECharts 6.0, which is very powerful. It can be used for covariance matrix charts:</p> <iframe width="600" height="700" src=""></iframe> <p>Periodic table:</p> <iframe width="100%" height="600" src=""></iframe> <p>As a layout, it also allows developers to combine various chart types and components to create flexible and complex visualizations:</p> <iframe width="100%" height="600" src=""></iframe> <h3 id="10.-enhanced-custom-series" tabindex="-1">10. Enhanced Custom Series</h3> <p>Previously, using ECharts custom series meant developers had to write complex <code>renderItem</code> logic from scratch, and code reuse was limited to copy-pasting. Now, ECharts 6.0 brings a standardized, reusable solution:</p> <ul><li><strong>Custom series registration</strong>: Like theme registration, custom series can be dynamically registered and used as easily as built-in series. See <a href="https://echarts.apache.org/option.html#series-custom.renderItem">series-custom.renderItem</a></li> <li><strong>Official custom series project</strong>: The official project at <a href="https://github.com/apache/echarts-custom-series">https://github.com/apache/echarts-custom-series</a> provides multiple custom series, available via npm after the official release</li> <li><strong>Publish your own custom series</strong>: Submit a pull request to the above project or publish to your own repo for code reuse</li></ul> <h3 id="11.-new-custom-charts" tabindex="-1">11. New Custom Charts</h3> <p>This release provides 6 practical custom charts in the custom series project. See <a href="https://github.com/apache/echarts-custom-series">echarts-custom-series</a> for usage and documentation. Including <strong>violin chart</strong>:</p> <img data-src="images/feature-v6/11-violin.png" width="600px"> <p><strong>Contour chart</strong>:</p> <img data-src="images/feature-v6/11-contour.png" width="600px"> <p><strong>Sleep stage chart</strong>:</p> <img data-src="images/feature-v6/11-stage.png" width="600px"> <p><strong>Segmented doughnut chart</strong>:</p> <img data-src="images/feature-v6/11-segmentedDoughnut.png" width="600px"> <p><strong>Bar range chart</strong>:</p> <img data-src="images/feature-v6/11-barRange.png" width="600px"> <p><strong>Line range chart</strong>:</p> <img data-src="images/feature-v6/11-lineRange.png" width="600px"> <p>Unleash your creativity and join us in creating more custom charts!</p> <h3 id="12.-axis-label-optimization" tabindex="-1">12. Axis Label Optimization</h3> <p>In previous versions, axis labels and names in rectangular coordinate systems could easily overflow or overlap when data was long. Users couldn't always predict space needs as data changed. In this version, we've optimized the default strategies to prevent overflow and overlap.</p> <h2 id="upgrade-guide" tabindex="-1">Upgrade Guide</h2> <p>See the full <a href="https://echarts.apache.org/changelog.html#v6-0-0">changelog</a> and <a href="en/basics/release-note/v6-upgrade-guide">upgrade guide</a>.</p></article></div></div> <div class="post-contributors"><h3><span class="inline-block align-middle">Contributors</span> <a target="_blank" href="https://github.com/apache/echarts-handbook/tree/master/contents/en/basics/release-note/v6-feature.md" title="Edit this Document" class="inline-block align-middle text-sm"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-8 w-8 inline-block align-middle"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg> <span class="inline-block align-middle">Edit this page on GitHub</span></a></h3> <div class="post-contributors-list"><a href="https://github.com/plainheart" target="_blank" class="post-contributor has-avatar"><img alt="plainheart" src="https://echarts.apache.org/en/images/people/plainheart.jpg" loading="lazy" decoding="async" fetchpriority="low"> <span>plainheart</span></a><a href="https://github.com/Ovilia" target="_blank" class="post-contributor has-avatar"><img alt="Ovilia" src="https://echarts.apache.org/en/images/people/羡辙.jpg?_v_=20240226" loading="lazy" decoding="async" fetchpriority="low"> <span>Ovilia</span></a></div></div></div></div></div></div></div></div></div></div><script>window.__NUXT__=function(e,t,i,r,a,n,s,o,d,l,h,c,p,g,m,u,f,v,b,w,y,x,C,k,S,G,E,N,A,B,T,j,I,R,V,z,P,F,Z,D,W,L,M,X,O,U,q,J,Y,K,H,_,Q,$,ee,te,ie,re,ae,ne,se,oe,de){return{layout:"default",data:[{html:'<h1 id="apache-echarts-6-new-features" tabindex="-1">Apache ECharts 6 New Features</h1>\n<p>Twelve years ago, ECharts was first released on GitHub, planting the seed for an open-source journey.</p>\n<p>From a simple charting tool to a visualization powerhouse supporting millions of developers; from a single front-end charting library to a comprehensive technology system covering mobile, large screens, and server-side rendering—over these 12 years, we\'ve witnessed ECharts\' continuous technical breakthroughs and have been delighted to see developers worldwide create countless stunning data stories with ECharts.</p>\n<p>Now, Apache ECharts 6.0 is officially released, bringing 12 major upgrades to take your data visualization to the next level.</p>\n<h2 id="feature-overview" tabindex="-1">Feature Overview</h2>\n<p>Twelve years of accumulation, all for more ultimate visual expression. The core strength of Apache ECharts has always come from a deep understanding of developers\' real challenges. When defining the direction for 6.0, the question was clear: <strong>How can we make complex data presentation both powerful and elegant?</strong></p>\n<p>This drove us to evolve deeply around three core dimensions:</p>\n<ul>\n<li><strong>More professional visual presentation</strong>: From a meticulously crafted default theme to intelligent dark mode switching, ensuring charts have a professional look and seamlessly integrate into modern applications.</li>\n<li><strong>Expanding the boundaries of data expression</strong>: New chart types and features to handle complex scenarios and enable intuitive expression of deep data.</li>\n<li><strong>Unleashing freedom of composition</strong>: From the revolutionary matrix coordinate system to reusable custom series and optimized axis labels—empowering developers to freely compose and turn creativity into unconstrained visual works.</li>\n</ul>\n<p>We have made 12 upgrades across these three core dimensions. These are not just simple feature additions, but a solid foundation for building the next generation of data-driven applications. They all point to one goal: <strong>to make ECharts powerful, reliable, and stable in the background, leaving the stage and spotlight for your creative expression.</strong></p>\n<p>Below, we introduce these twelve upgrades in detail:</p>\n<ul>\n<li><strong>More professional visual presentation</strong>\n<ul>\n<li><strong>1. Brand New Default Theme</strong>: Modern design language for professional data expression</li>\n<li><strong>2. Dynamic Theme Switching</strong>: Seamless runtime theme switching for multi-theme scenarios</li>\n<li><strong>3. Dark Mode Support</strong>: Automatically adapts to system dark/light mode for better UX</li>\n</ul>\n</li>\n<li><strong>Expanding the boundaries of data expression</strong>\n<ul>\n<li><strong>4. New Chord Chart</strong>: Visualize complex relationships and distributions</li>\n<li><strong>5. New Beeswarm Chart</strong>: Smartly expand overlapping data points into a honeycomb layout</li>\n<li><strong>6. New Scatter Jittering</strong>: Add jitter to scatter plots for better readability of dense data</li>\n<li><strong>7. New Broken Axis</strong>: Easily present data with large magnitude differences</li>\n<li><strong>8. Enhanced Stock Trading Charts</strong>: Improved label capabilities and more out-of-the-box trading charts</li>\n</ul>\n</li>\n<li><strong>Unleashing freedom of composition</strong>\n<ul>\n<li><strong>9. New Matrix Coordinate System</strong>: Freely combine chart types and components like a table</li>\n<li><strong>10. Enhanced Custom Series</strong>: Support npm publishing and dynamic registration for code reuse</li>\n<li><strong>11. New Custom Charts</strong>: Violin, contour, stage, bar range, and line range charts</li>\n<li><strong>12. Axis Label Optimization</strong>: Smarter default axis label layout to prevent overflow and overlap</li>\n</ul>\n</li>\n</ul>\n<p>With these upgrades, Apache ECharts 6.0 helps users create more charts more flexibly and conveniently, truly achieving "unlimited possibilities in charting"!</p>\n<h2 id="feature-details" tabindex="-1">Feature Details</h2>\n<h3 id="1.-brand-new-default-theme" tabindex="-1">1. Brand New Default Theme</h3>\n<p>During the development of ECharts 6.0, we analyzed real user scenarios and found that over 70% of developers use the default theme. This made us realize: an excellent default theme should not only be aesthetically pleasing but also meet the general needs of various business scenarios.</p>\n<p>The new theme system uses design tokens to reconstruct colors, spacing, and other design elements, <strong>making different chart types and components more harmonious and consistent</strong>.</p>\n<img data-src="images/feature-v6/1-default-theme.png" width="600px" />\n<p>Although the 6.0 theme has significant changes from 5.x, we provide a <a href="https://github.com/apache/echarts/blob/master/theme/v5.js">v5.js</a> theme file for developers who want to use new features but keep the old style for quick migration.</p>\n<h3 id="2.-dynamic-theme-switching" tabindex="-1">2. Dynamic Theme Switching</h3>\n<p>In previous versions, changing a chart\'s theme required disposing of the chart instance and re-initializing, which could negatively impact user experience due to repeated animations. In the new version, we implemented <strong>dynamic theme switching</strong> (see documentation), significantly improving the user experience.</p>\n<img data-src="images/feature-v6/2-switch-themes.gif" width="600px" />\n<h3 id="3.-dark-mode-support" tabindex="-1">3. Dark Mode Support</h3>\n<p>With dynamic theme registration and switching, a typical scenario is <strong>listening to the system\'s dark mode and dynamically adjusting the chart\'s theme</strong>.</p>\n<img data-src="images/feature-v6/3-responsive-themes.gif" width="600px" />\n<p>This is crucial for business scenarios supporting dark mode, ensuring the application interface matches the system theme and greatly enhancing user experience.</p>\n<p>Here\'s how to listen for system dark mode and change the chart theme:</p>\n<md-code-block lang="js" code="\'Y29uc3QgZGFya01vZGVNZWRpYVF1ZXJ5ID0gd2luZG93Lm1hdGNoTWVkaWEoJyhwcmVmZXJzLWNvbG9yLXNjaGVtZTogZGFyayknKTsKZnVuY3Rpb24gdXBkYXRlRGFya01vZGUoKSB7CiAgICBjb25zdCBpc0RhcmtNb2RlID0gZGFya01vZGVNZWRpYVF1ZXJ5Lm1hdGNoZXM7CiAgICBmb3IgKGNvbnN0IGNoYXJ0IG9mIGNoYXJ0cykgewogICAgICAgIGNoYXJ0LnNldFRoZW1lKGlzRGFya01vZGUgPyAnZGFyaycgOiAnZGVmYXVsdCcpOwogICAgfQp9CmRhcmtNb2RlTWVkaWFRdWVyeS5hZGRFdmVudExpc3RlbmVyKCdjaGFuZ2UnLCAoKSA9PiB7CiAgICB1cGRhdGVEYXJrTW9kZSgpOwp9KTs\'" line-highlights="\'\'" />\n<h3 id="4.-new-chord-chart" tabindex="-1">4. New Chord Chart</h3>\n<p>Chord charts intuitively show flows and weights in complex relationship networks, ideal for scenarios like financial transactions and social networks. ECharts innovatively supports <strong>using gradient colors from source and target nodes for edges, creating unique visual effects</strong>. See <a href="https://echarts.apache.org/option.html#series-chord">series-chord</a>.</p>\n<img data-src="images/feature-v6/4-chord.gif" width="600px" />\n<h3 id="5.-new-beeswarm-chart" tabindex="-1">5. New Beeswarm Chart</h3>\n<p>Traditional scatter plots can become overcrowded on category axes. Beeswarm charts use non-numeric axis offsets to <strong>distribute points without overlap while preserving value axis accuracy</strong>. Set <a href="https://echarts.apache.org/option.html#xAxis.jitter">jitter</a> to a non-zero value and <a href="https://echarts.apache.org/option.html#xAxis.jitterOverlap">jitterOverlap</a> to <code>false</code> to enable beeswarm charts.</p>\n<img data-src="images/feature-v6/5-beeswarm.png" width="600px" />\n<h3 id="6.-new-scatter-jittering" tabindex="-1">6. New Scatter Jittering</h3>\n<p>Scatter jittering adds random offsets to non-data dimensions, <strong>solving the problem of overly dense data points</strong>.</p>\n<p>Without jittering, it\'s hard to see the distribution when data is dense:</p>\n<img data-src="images/feature-v6/6-jittering-off.png" width="600px" />\n<p>With jittering enabled, the densest range (6-8) becomes clear. Compared to beeswarm, scatter jittering offers better performance.</p>\n<img data-src="images/feature-v6/6-jittering-on.png" width="600px" />\n<p>Set <a href="https://echarts.apache.org/option.html#xAxis.jitter">jitter</a> to a non-zero value and <a href="https://echarts.apache.org/option.html#xAxis.jitterOverlap">jitterOverlap</a> to <code>true</code> to enable scatter jittering.</p>\n<h3 id="7.-new-broken-axis" tabindex="-1">7. New Broken Axis</h3>\n<p>Broken axis is a visualization technique for showing data with large magnitude differences. In ECharts 6.0, we innovatively implemented a <strong>torn-paper effect for broken axes</strong>, making the meaning more intuitive, and supporting click-to-expand to restore the real data ratio.</p>\n<img data-src="images/feature-v6/7-break-axis.gif" width="600px" />\n<h3 id="8.-enhanced-stock-trading-charts" tabindex="-1">8. Enhanced Stock Trading Charts</h3>\n<p>ECharts 6.0 deeply optimizes for financial trading scenarios, enhancing label positioning relative to coordinate systems to help developers quickly build professional-grade trading analysis tools.</p>\n<p>Below is a comprehensive stock trading chart using ECharts, combining <strong>time-sharing, MACD, volume, order book, and depth chart</strong>:</p>\n<img data-src="images/feature-v6/8-stock.png" width="600px" />\n<p>These examples help developers quickly meet financial trading needs. For example, displaying numbers in the four corners of the chart can be achieved with <a href="https://echarts.apache.org/option.html#series-line.markPoint.data.relativeTo">relativeTo</a>.</p>\n<h3 id="9.-new-matrix-coordinate-system" tabindex="-1">9. New Matrix Coordinate System</h3>\n<p>The above example also uses the new matrix coordinate system in ECharts 6.0, which is very powerful. It can be used for covariance matrix charts:</p>\n<md-example src="matrix-covariance" width="600" height="700" />\n<p>Periodic table:</p>\n<md-example src="matrix-periodic-table" width="100%" height="600" />\n<p>As a layout, it also allows developers to combine various chart types and components to create flexible and complex visualizations:</p>\n<md-example src="matrix-grid-layout" width="100%" height="600" />\n<h3 id="10.-enhanced-custom-series" tabindex="-1">10. Enhanced Custom Series</h3>\n<p>Previously, using ECharts custom series meant developers had to write complex <code>renderItem</code> logic from scratch, and code reuse was limited to copy-pasting. Now, ECharts 6.0 brings a standardized, reusable solution:</p>\n<ul>\n<li><strong>Custom series registration</strong>: Like theme registration, custom series can be dynamically registered and used as easily as built-in series. See <a href="https://echarts.apache.org/option.html#series-custom.renderItem">series-custom.renderItem</a></li>\n<li><strong>Official custom series project</strong>: The official project at <a href="https://github.com/apache/echarts-custom-series">https://github.com/apache/echarts-custom-series</a> provides multiple custom series, available via npm after the official release</li>\n<li><strong>Publish your own custom series</strong>: Submit a pull request to the above project or publish to your own repo for code reuse</li>\n</ul>\n<h3 id="11.-new-custom-charts" tabindex="-1">11. New Custom Charts</h3>\n<p>This release provides 6 practical custom charts in the custom series project. See <a href="https://github.com/apache/echarts-custom-series">echarts-custom-series</a> for usage and documentation. Including <strong>violin chart</strong>:</p>\n<img data-src="images/feature-v6/11-violin.png" width="600px" />\n<p><strong>Contour chart</strong>:</p>\n<img data-src="images/feature-v6/11-contour.png" width="600px" />\n<p><strong>Sleep stage chart</strong>:</p>\n<img data-src="images/feature-v6/11-stage.png" width="600px" />\n<p><strong>Segmented doughnut chart</strong>:</p>\n<img data-src="images/feature-v6/11-segmentedDoughnut.png" width="600px" />\n<p><strong>Bar range chart</strong>:</p>\n<img data-src="images/feature-v6/11-barRange.png" width="600px" />\n<p><strong>Line range chart</strong>:</p>\n<img data-src="images/feature-v6/11-lineRange.png" width="600px" />\n<p>Unleash your creativity and join us in creating more custom charts!</p>\n<h3 id="12.-axis-label-optimization" tabindex="-1">12. Axis Label Optimization</h3>\n<p>In previous versions, axis labels and names in rectangular coordinate systems could easily overflow or overlap when data was long. Users couldn\'t always predict space needs as data changed. In this version, we\'ve optimized the default strategies to prevent overflow and overlap.</p>\n<h2 id="upgrade-guide" tabindex="-1">Upgrade Guide</h2>\n<p>See the full <a href="https://echarts.apache.org/changelog.html#v6-0-0">changelog</a> and <a href="en/basics/release-note/v6-upgrade-guide">upgrade guide</a>.</p>\n',postPath:"en/basics/release-note/v6-feature",title:"ECharts 6 Features - What's New - Basics"}],fetch:{},error:null,state:{filled:!1,docVersion:"",ghVersion:"",visibleAffix:!1,homepage:{},adBlocked:!1,focusMode:!1,posts:{zh:[{title:"快速上手",dir:r},{title:"入门篇",dir:a,children:[{title:"获取 ECharts",dir:n},{title:"在项目中引入 ECharts",dir:s},{title:"资源列表",dir:o,draft:e},{title:"寻求帮助",dir:d},{title:"版本特性",dir:l,children:[{title:"ECharts 6 特性介绍",dir:h},{title:"v5 升级 v6 指南",dir:c},{title:"5.0",dir:p},{title:"v4 升级 v5 指南",dir:g},{title:5.2,dir:m},{title:5.3,dir:u},{title:5.4,dir:f},{title:5.5,dir:v},{title:5.6,dir:b}]}]},{title:"概念篇",dir:w,children:[{title:"图表容器及大小",dir:y},{title:"配置项",dir:x,draft:e},{title:"系列",dir:C,draft:e},{title:"样式",dir:k},{title:"数据集",dir:S},{title:"数据转换",dir:G},{title:"坐标系",dir:E,draft:e},{title:"坐标轴",dir:N},{title:"视觉映射",dir:i},{title:"图例",dir:A},{title:"事件与行为",dir:B}]},{title:"应用篇",dir:T,children:[{title:"常用图表类型",dir:j,children:[{title:"柱状图",dir:"bar",children:[{title:"基础柱状图",dir:I},{title:"堆叠柱状图",dir:R},{title:"动态排序柱状图",dir:V},{title:"极坐标系柱状图",dir:z,draft:e},{title:"阶梯瀑布图",dir:P},{title:"视觉映射的柱状图",dir:i,draft:e}]},{title:"折线图",dir:F,children:[{title:"基础折线图",dir:Z},{title:"堆叠折线图",dir:D},{title:"区域面积图",dir:W},{title:"平滑曲线图",dir:L},{title:"阶梯线图",dir:M}]},{title:"饼图",dir:"pie",children:[{title:"基础饼图",dir:X},{title:"圆环图",dir:O},{title:"南丁格尔图(玫瑰图)",dir:"rose"}]},{title:"散点图",dir:U,children:[{title:"基础散点图",dir:q}]}]},{title:"常用组件",dir:J,children:[{title:"地理坐标系(Geo)",dir:"geo",children:[{title:"SVG 底图",dir:Y}]}]},{title:"移动端优化",dir:t,draft:e},{title:"跨平台方案",dir:K,children:[{title:"服务端渲染",dir:"server"},{title:"微信小程序",dir:"wechat-app"},{title:"百度智能小程序",dir:"baidu-app"}]},{title:"数据处理",dir:"data",children:[{title:"动态的异步数据",dir:H},{title:"数据下钻",dir:_,draft:e}]},{title:"标签",dir:"label",children:[{title:"富文本标签",dir:Q}]},{title:"动画",dir:$,children:[{title:"数据过渡动画",dir:ee}]},{title:"交互",dir:te,children:[{title:"拖拽的实现",dir:"drag"},{title:"多图联动",dir:ie,draft:e},{title:"智能指针吸附",dir:re}]}]},{title:"最佳实践",dir:ae,children:[{title:"移动端优化",dir:t,draft:e},{title:ne,dir:se},{title:"无障碍访问",dir:"aria"},{title:"安全指南",dir:oe}]},{title:"编辑本文档",dir:"meta",children:[{title:"文档编辑指南",dir:de}]}],en:[{title:"Get Started",dir:r},{title:"Basics",dir:a,children:[{title:"Download ECharts",dir:n},{title:"Import ECharts",dir:s},{title:"Resources",dir:o,draft:e},{title:"Get Help",dir:d},{title:"What's New",dir:l,children:[{title:"ECharts 6 Features",dir:h},{title:"Migration from v5 to v6",dir:c},{title:"5.0",dir:p},{title:"Migration from v4 to v5",dir:g},{title:5.2,dir:m},{title:5.3,dir:u},{title:5.4,dir:f},{title:5.5,dir:v},{title:5.6,dir:b}]}]},{title:"Concepts",dir:w,children:[{title:"Chart Container",dir:y},{title:"Chart Option",dir:x,draft:e},{title:"Series",dir:C,draft:e},{title:"Style",dir:k},{title:"Dataset",dir:S},{title:"Data Transform",dir:G},{title:"Coordinate",dir:E,draft:e},{title:"Axis",dir:N},{title:"Visual Mapping",dir:i},{title:"Legend",dir:A},{title:"Event and Action",dir:B}]},{title:"How To Guides",dir:T,children:[{title:"Common Charts",dir:j,children:[{title:"Bar",dir:"bar",children:[{title:"Basic Bar",dir:I},{title:"Stacked Bar",dir:R},{title:"Bar Racing",dir:V},{title:"Bar Polar",dir:z,draft:e},{title:"Waterfall",dir:P}]},{title:"Line",dir:F,children:[{title:"Basic Line",dir:Z},{title:"Stacked Line",dir:D},{title:"Area Chart",dir:W},{title:"Smoothed Line",dir:L},{title:"Step Line",dir:M}]},{title:"Pie",dir:"pie",children:[{title:"Basic Pie",dir:X},{title:"Ring Style",dir:O},{title:"Rose Style",dir:"rose"}]},{title:"Scatter",dir:U,children:[{title:"Basic Scatter",dir:q}]}]},{title:"Common Components",dir:J,children:[{title:"Geo",dir:"geo",children:[{title:"SVG Base Map",dir:Y}]}]},{title:"Mobile",dir:t,draft:e},{title:"Cross Platform",dir:K,children:[{title:"Server Side Rendering",dir:"server"}]},{title:"Data",dir:"data",children:[{title:"Dynamic Data",dir:H},{title:"Drilldown",dir:_,draft:e}]},{title:"Label",dir:"label",children:[{title:"Rich Text",dir:Q}]},{title:"Animation",dir:$,children:[{title:"Data Transition",dir:ee}]},{title:"Interaction",dir:te,children:[{title:"Drag",dir:"drag"},{title:"Connect",dir:ie,draft:e},{title:"Intelligent Pointer Snapping",dir:re}]}]},{title:"Best Practices",dir:ae,children:[{title:"Mobile Optimization",dir:t,draft:e},{title:ne,dir:se},{title:"Aria",dir:"aria"},{title:"Security Guidelines",dir:oe}]},{title:"Edit Handbook",dir:"meta",children:[{title:"Edit Guide",dir:de}]}]},config:{routerBase:"/echarts-handbook",rootPath:"https://apache.github.io/echarts-handbook/",exampleViewPath:"https://echarts.apache.org/examples/${lang}/view.html?c=",exampleEditorPath:"https://echarts.apache.org/examples/${lang}/editor.html?c=",mainSitePath:"https://echarts.apache.org/",optionPath:"https://echarts.apache.org/option.html#",apiPath:"https://echarts.apache.org/api.html#",gitRepo:"apache/echarts-handbook"},i18n:{routeParams:{}}},serverRendered:e,routePath:"/en/basics/release-note/v6-feature",config:{_app:{basePath:"/echarts-handbook/",assetsPath:"/echarts-handbook/_nuxt/",cdnURL:null}}}}(!0,"mobile","visual-map","get-started","basics","download","import","resource","help","release-note","v6-feature","v6-upgrade-guide","v5-feature","v5-upgrade-guide","5-2-0","5-3-0","5-4-0","5-5-0","5-6-0","concepts","chart-size","options","series","style","dataset","data-transform","coordinate","axis","legend","event","how-to","chart-types","basic-bar","stacked-bar","bar-race","polar-bar","waterfall","line","basic-line","stacked-line","area-line","smooth-line","step-line","basic-pie","doughnut","scatter","basic-scatter","component-types","svg-base-map","cross-platform","dynamic-data","drilldown","rich-text","animation","transition","interaction","connect","coarse-pointer","best-practices","Canvas vs. SVG","canvas-vs-svg","security","edit-guide")</script><script src="/echarts-handbook/_nuxt/73c8e4b.js" defer></script><script src="/echarts-handbook/_nuxt/js/e97de2cdc6b7785ece0f.js" defer></script><script src="/echarts-handbook/_nuxt/js/8cbc28eba39ffdac2c44.js" defer></script><script src="/echarts-handbook/_nuxt/js/fa73816a85b29fbf7562.js" defer></script><script src="/echarts-handbook/_nuxt/js/b964c20bb1562bc48da6.js" defer></script><script src="/echarts-handbook/_nuxt/js/58025dad1462d49b8398.js" defer></script><noscript data-n-head="ssr" data-body="true"><div class="no-script"><strong>很抱歉,Apache ECharts 网站需要启用 JavaScript 才能正常运行。</strong></div></noscript> |