{"id":189604,"date":"2023-01-09T00:40:44","date_gmt":"2023-01-08T16:40:44","guid":{"rendered":"https:\/\/www.idc.net\/help\/189604\/"},"modified":"2023-01-09T00:40:44","modified_gmt":"2023-01-08T16:40:44","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91echarts%e6%95%99%e7%a8%8b%ef%bc%9aecharts%e7%b3%bb%e5%88%97%ef%bc%9a%e4%b8%bb%e9%a2%98%e6%b2%b3%e6%b5%81%e5%9b%be","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/189604\/","title":{"rendered":"\u540e\u6d6a\u4e91ECharts\u6559\u7a0b\uff1aECharts\u7cfb\u5217\uff1a\u4e3b\u9898\u6cb3\u6d41\u56fe"},"content":{"rendered":"<p>\u5728ECharts\u7cfb\u5217\u4e2d\uff0c\u4f7f\u7528series[i]-themeRiver\u8bbe\u7f6e\u4e3b\u9898\u6cb3\u6d41\u56fe\uff0c\u4e3b\u9898\u6cb3\u6d41\u56fe\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6d41\u56fe\uff0c\u5b83\u4e3b\u8981\u7528\u6765\u8868\u793a\u4e8b\u4ef6\u6216\u4e3b\u9898\u7b49\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u53d8\u5316\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p style=\"text-align: center\"> <\/p>\n<h2>\u4e3b\u9898\u6cb3\u6d41\u56fe\u53ef\u89c6\u7f16\u7801<\/h2>\n<p>\u4e3b\u9898\u6cb3\u6d41\u4e2d\u4e0d\u540c\u989c\u8272\u7684\u6761\u5e26\u72b6\u6cb3\u6d41\u5206\u652f\u7f16\u7801\u4e86\u4e0d\u540c\u7684\u4e8b\u4ef6\u6216\u4e3b\u9898\uff0c\u6cb3\u6d41\u5206\u652f\u7684\u5bbd\u5ea6\u7f16\u7801\u4e86\u539f\u6570\u636e\u96c6\u4e2d\u7684value\u503c\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u539f\u6570\u636e\u96c6\u4e2d\u7684\u65f6\u95f4\u5c5e\u6027\uff0c\u6620\u5c04\u5230\u5355\u4e2a\u65f6\u95f4\u8f74\u4e0a\u3002<\/p>\n<h2>\u4e3b\u9898\u6cb3\u6d41\u56fe\u5c5e\u6027<\/h2>\n<pre><code>type<\/code><\/pre>\n<p>\u5728ECharts\u4e2d\u4e3b\u9898\u6cb3\u6d41\u56fe\u7684type\u5c5e\u6027\u503c\u4e3a'themeRiver'\u3002<\/p>\n<pre><code>zlevel<\/code><\/pre>\n<p>\u6240\u6709\u56fe\u5f62\u7684 zlevel \u503c\uff0c\u9ed8\u8ba4\u4e3a 0\u3002<\/p>\n<p>zlevel\u7528\u4e8e Canvas \u5206\u5c42\uff0c\u4e0d\u540czlevel\u503c\u7684\u56fe\u5f62\u4f1a\u653e\u7f6e\u5728\u4e0d\u540c\u7684 Canvas \u4e2d\uff0cCanvas \u5206\u5c42\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u4f18\u5316\u624b\u6bb5\u3002\u6211\u4eec\u53ef\u4ee5\u628a\u4e00\u4e9b\u56fe\u5f62\u53d8\u5316\u9891\u7e41\uff08\u4f8b\u5982\u6709\u52a8\u753b\uff09\u7684\u7ec4\u4ef6\u8bbe\u7f6e\u6210\u4e00\u4e2a\u5355\u72ec\u7684zlevel\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\u8fc7\u591a\u7684 Canvas \u4f1a\u5f15\u8d77\u5185\u5b58\u5f00\u9500\u7684\u589e\u5927\uff0c\u5728\u624b\u673a\u7aef\u4e0a\u9700\u8981\u8c28\u614e\u4f7f\u7528\u4ee5\u9632\u5d29\u6e83\u3002<\/p>\n<p>zlevel&nbsp;\u5927\u7684 Canvas \u4f1a\u653e\u5728&nbsp;zlevel&nbsp;\u5c0f\u7684 Canvas \u7684\u4e0a\u9762\u3002<\/p>\n<pre><code>z<\/code><\/pre>\n<p>\u7ec4\u4ef6\u7684\u6240\u6709\u56fe\u5f62\u7684z\u503c\uff0c\u9ed8\u8ba4\u4e3a 2\u3002\u63a7\u5236\u56fe\u5f62\u7684\u524d\u540e\u987a\u5e8f\u3002z\u503c\u5c0f\u7684\u56fe\u5f62\u4f1a\u88abz\u503c\u5927\u7684\u56fe\u5f62\u8986\u76d6\u3002<\/p>\n<p>z\u76f8\u6bd4zlevel\u4f18\u5148\u7ea7\u66f4\u4f4e\uff0c\u800c\u4e14\u4e0d\u4f1a\u521b\u5efa\u65b0\u7684 Canvas\u3002<\/p>\n<pre><code>left<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u79bb\u5bb9\u5668\u5de6\u4fa7\u7684\u8ddd\u79bb\uff0c\u9ed8\u8ba4\u4e3a 5%\uff08\u4e0b\u8ff0\u7684top\u3001right\u3001bottom\u5c5e\u6027\u7684\u9ed8\u8ba4\u503c\u4e5f\u4e3a 5%\uff09\u3002<\/p>\n<p>left&nbsp;\u7684\u503c\u53ef\u4ee5\u662f\u50cf&nbsp;20&nbsp;\u8fd9\u6837\u7684\u5177\u4f53\u50cf\u7d20\u503c\uff0c\u53ef\u4ee5\u662f\u50cf&nbsp;'20%'&nbsp;\u8fd9\u6837\u76f8\u5bf9\u4e8e\u5bb9\u5668\u9ad8\u5bbd\u7684\u767e\u5206\u6bd4\uff0c\u4e5f\u53ef\u4ee5\u662f&nbsp;'left',&nbsp;'center',&nbsp;'right'\u3002<\/p>\n<p>\u5982\u679c&nbsp;left&nbsp;\u7684\u503c\u4e3a'left',&nbsp;'center',&nbsp;'right'\uff0c\u7ec4\u4ef6\u4f1a\u6839\u636e\u76f8\u5e94\u7684\u4f4d\u7f6e\u81ea\u52a8\u5bf9\u9f50\u3002<\/p>\n<pre><code>top<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u79bb\u5bb9\u5668\u4e0a\u4fa7\u7684\u8ddd\u79bb\u3002<\/p>\n<p>top&nbsp;\u7684\u503c\u53ef\u4ee5\u662f\u50cf&nbsp;20&nbsp;\u8fd9\u6837\u7684\u5177\u4f53\u50cf\u7d20\u503c\uff0c\u53ef\u4ee5\u662f\u50cf&nbsp;'20%'&nbsp;\u8fd9\u6837\u76f8\u5bf9\u4e8e\u5bb9\u5668\u9ad8\u5bbd\u7684\u767e\u5206\u6bd4\uff0c\u4e5f\u53ef\u4ee5\u662f&nbsp;'top',&nbsp;'middle',&nbsp;'bottom'\u3002<\/p>\n<p>\u5982\u679c&nbsp;top&nbsp;\u7684\u503c\u4e3a'top',&nbsp;'middle',&nbsp;'bottom'\uff0c\u7ec4\u4ef6\u4f1a\u6839\u636e\u76f8\u5e94\u7684\u4f4d\u7f6e\u81ea\u52a8\u5bf9\u9f50\u3002<\/p>\n<pre><code>right<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u79bb\u5bb9\u5668\u53f3\u4fa7\u7684\u8ddd\u79bb\u3002<\/p>\n<p>right&nbsp;\u7684\u503c\u53ef\u4ee5\u662f\u50cf&nbsp;20&nbsp;\u8fd9\u6837\u7684\u5177\u4f53\u50cf\u7d20\u503c\uff0c\u53ef\u4ee5\u662f\u50cf&nbsp;'20%'&nbsp;\u8fd9\u6837\u76f8\u5bf9\u4e8e\u5bb9\u5668\u9ad8\u5bbd\u7684\u767e\u5206\u6bd4\u3002<\/p>\n<pre><code>bottom<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u79bb\u5bb9\u5668\u4e0b\u4fa7\u7684\u8ddd\u79bb\u3002<\/p>\n<p>bottom \u7684\u503c\u53ef\u4ee5\u662f\u50cf&nbsp;20&nbsp;\u8fd9\u6837\u7684\u5177\u4f53\u50cf\u7d20\u503c\uff0c\u53ef\u4ee5\u662f\u50cf&nbsp;'20%'&nbsp;\u8fd9\u6837\u76f8\u5bf9\u4e8e\u5bb9\u5668\u9ad8\u5bbd\u7684\u767e\u5206\u6bd4\u3002<\/p>\n<pre><code>width<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u7684\u5bbd\u5ea6\u3002<\/p>\n<pre><code>height<\/code><\/pre>\n<p>thmemRiver\u7ec4\u4ef6\u7684\u9ad8\u5ea6\u3002<\/p>\n<p>\u6ce8\u610f\uff1a&nbsp;\u6574\u4e2a\u4e3b\u9898\u6cb3\u6d41view\u7684\u4f4d\u7f6e\u4fe1\u606f\u590d\u7528\u4e86\u5355\u4e2a\u65f6\u95f4\u8f74\u7684\u4f4d\u7f6e\u4fe1\u606f\uff0c\u5373left\uff0ctop\uff0cright\uff0cbottom\u3002<\/p>\n<pre><code>coordinateSystem<\/code><\/pre>\n<p>\u5750\u6807\u7cfb\u7edf\uff0c\u4e3b\u9898\u6cb3\u6d41\u7528\u7684\u662f\u5355\u4e2a\u7684\u65f6\u95f4\u8f74\u3002\u9ed8\u8ba4\u4e3asingle\u3002<\/p>\n<pre><code>boundaryGap<\/code><\/pre>\n<p>\u56fe\u4e2d\u4e0e\u5750\u6807\u8f74\u6b63\u4ea4\u7684\u65b9\u5411\u7684\u8fb9\u754c\u95f4\u9699\uff0c\u8bbe\u7f6e\u8be5\u503c\u662f\u4e3a\u4e86\u8c03\u6574\u56fe\u7684\u4f4d\u7f6e\uff0c\u4f7f\u5176\u5c3d\u91cf\u5904\u4e8e\u5c4f\u5e55\u7684\u6b63\u4e2d\u95f4\uff0c\u907f\u514d\u5904\u4e8e\u5c4f\u5e55\u7684\u4e0a\u65b9\u6216\u4e0b\u65b9\u3002\u9ed8\u8ba4\u503c\u4e3a[\"10%\", \"10%\"]\u3002<\/p>\n<pre><code>singleAxisIndex<\/code><\/pre>\n<p>\u5355\u4e2a\u65f6\u95f4\u8f74\u7684index\uff0c\u9ed8\u8ba4\u503c\u4e3a0\uff0c\u56e0\u4e3a\u53ea\u6709\u5355\u4e2a\u8f74\u3002<\/p>\n<pre><code>label<\/code><\/pre>\n<p>label&nbsp;\u63cf\u8ff0\u4e86\u4e3b\u9898\u6cb3\u6d41\u4e2d\u6bcf\u4e2a\u5e26\u72b6\u6cb3\u6d41\u5206\u652f\u5bf9\u5e94\u7684\u6587\u672c\u6807\u7b7e\u7684\u6837\u5f0f\u3002<\/p>\n<pre><code>itemStyle<\/code><\/pre>\n<p>\u4e3b\u9898\u6cb3\u6d41\u4e2d\u6bcf\u4e2a\u5e26\u72b6\u6cb3\u6d41\u5206\u652f\u7684\u6837\u5f0f\u3002<\/p>\n<pre><code>data[i]<\/code><\/pre>\n<p>\u7cfb\u5217\u4e2d\u7684\u6570\u636e\u5185\u5bb9\u6570\u7ec4\u3002\u6570\u7ec4\u9879\u901a\u5e38\u4e3a\u5177\u4f53\u7684\u6570\u636e\u9879\u3002<\/p>\n<p>\u901a\u5e38\u6765\u8bf4\uff0c\u6570\u636e\u7528\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\u8868\u793a\u3002\u5982\u4e0b\uff0c\u6bcf\u4e00\u5217\u88ab\u79f0\u4e3a\u4e00\u4e2a\u300e\u7ef4\u5ea6\u300f\u3002<\/p>\n<pre><code>series: [{\n    data: [\n        \/\/ \u7ef4\u5ea6X   \u7ef4\u5ea6Y   \u5176\u4ed6\u7ef4\u5ea6 ...\n        [  3.4,    4.5,   15,   43],\n        [  4.2,    2.3,   20,   91],\n        [  10.8,   9.5,   30,   18],\n        [  7.2,    8.8,   18,   57]\n    ]\n}]<\/code><\/pre>\n<ul>\n<li>\u5728&nbsp;\u76f4\u89d2\u5750\u6807\u7cfb (grid)&nbsp;\u4e2d\u300e\u7ef4\u5ea6X\u300f\u548c\u300e\u7ef4\u5ea6Y\u300f\u4f1a\u9ed8\u8ba4\u5bf9\u5e94\u4e8e&nbsp;xAxis&nbsp;\u548c&nbsp;yAxis\u3002<\/li>\n<li>\u5728&nbsp;\u6781\u5750\u6807\u7cfb (polar)&nbsp;\u4e2d\u300e\u7ef4\u5ea6X\u300f\u548c\u300e\u7ef4\u5ea6Y\u300f\u4f1a\u9ed8\u8ba4\u5bf9\u5e94\u4e8e&nbsp;radiusAxis&nbsp;\u548c&nbsp;angleAxis\u3002<\/li>\n<li>\u540e\u9762\u7684\u5176\u4ed6\u7ef4\u5ea6\u662f\u53ef\u9009\u7684\uff0c\u53ef\u4ee5\u5728\u522b\u5904\u88ab\u4f7f\u7528\uff0c\u4f8b\u5982\uff1a\n<ul>\n<li>\u5728&nbsp;visualMap&nbsp;\u4e2d\u53ef\u4ee5\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u7ef4\u5ea6\u6620\u5c04\u5230\u989c\u8272\uff0c\u5927\u5c0f\u7b49\u591a\u4e2a\u56fe\u5f62\u5c5e\u6027\u4e0a\u3002<\/li>\n<li>\u5728&nbsp;series.symbolSize&nbsp;\u4e2d\u53ef\u4ee5\u4f7f\u7528\u56de\u8c03\u51fd\u6570\uff0c\u57fa\u4e8e\u67d0\u4e2a\u7ef4\u5ea6\u5f97\u5230 symbolSize \u503c\u3002<\/li>\n<li>\u4f7f\u7528&nbsp;tooltip.formatter&nbsp;\u6216&nbsp;series.label.normal.formatter&nbsp;\u53ef\u4ee5\u628a\u5176\u4ed6\u7ef4\u5ea6\u7684\u503c\u5c55\u793a\u51fa\u6765\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u7279\u522b\u5730\uff0c\u5f53\u53ea\u6709\u4e00\u4e2a\u8f74\u4e3a\u7c7b\u76ee\u8f74\uff08axis.type \u4e3a&nbsp;'category'\uff09\u7684\u65f6\u5019\uff0c\u6570\u636e\u53ef\u4ee5\u7b80\u5316\u7528\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4\u8868\u793a\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code>xAxis: {\n    data: ['a', 'b', 'm', 'n']\n},\nseries: [{\n    \/\/ \u4e0e xAxis.data \u4e00\u4e00\u5bf9\u5e94\u3002\n    data: [23,  44,  55,  19]\n    \/\/ \u5b83\u5176\u5b9e\u662f\u4e0b\u9762\u8fd9\u79cd\u5f62\u5f0f\u7684\u7b80\u5316\uff1a\n    \/\/ data: [[0, 23], [1, 44], [2, 55], [3, 19]]\n}]<\/code><\/pre>\n<p>\u300e\u503c\u300f\u4e0e&nbsp;\u8f74\u7c7b\u578b&nbsp;\u7684\u5173\u7cfb\uff1a<\/p>\n<ul>\n<li>\u5f53\u67d0\u7ef4\u5ea6\u5bf9\u5e94\u4e8e\u6570\u503c\u8f74\uff08axis.type \u4e3a&nbsp;'value'&nbsp;\u6216\u8005&nbsp;'log'\uff09\u7684\u65f6\u5019\uff1a <br \/>\u5176\u503c\u53ef\u4ee5\u4e3a&nbsp;number\uff08\u4f8b\u5982&nbsp;12\uff09\u3002\uff08\u4e5f\u53ef\u4ee5\u517c\u5bb9&nbsp;string&nbsp;\u5f62\u5f0f\u7684 number\uff0c\u4f8b\u5982&nbsp;'12'\uff09<\/li>\n<li>\u5f53\u67d0\u7ef4\u5ea6\u5bf9\u5e94\u4e8e\u7c7b\u76ee\u8f74\uff08axis.type \u4e3a&nbsp;'category'\uff09\u7684\u65f6\u5019\uff1a <br \/>\u5176\u503c\u987b\u4e3a\u7c7b\u76ee\u7684\u300e\u5e8f\u6570\u300f\uff08\u4ece&nbsp;0&nbsp;\u5f00\u59cb\uff09\u6216\u8005\u7c7b\u76ee\u7684\u300e\u5b57\u7b26\u4e32\u503c\u300f\u3002\u4f8b\u5982\uff1a&nbsp;\n<pre><code>  xAxis: {\n      type: 'category',\n      data: ['\u661f\u671f\u4e00', '\u661f\u671f\u4e8c', '\u661f\u671f\u4e09', '\u661f\u671f\u56db']\n  },\n  yAxis: {\n      type: 'category',\n      data: ['a', 'b', 'm', 'n', 'p', 'q']\n  },\n  series: [{\n      data: [\n          \/\/ xAxis    yAxis\n          [  0,        0,    2  ], \/\/ \u610f\u601d\u662f\u6b64\u70b9\u4f4d\u4e8e xAxis: '\u661f\u671f\u4e00', yAxis: 'a'\u3002\n          [  '\u661f\u671f\u56db',  2,    1  ], \/\/ \u610f\u601d\u662f\u6b64\u70b9\u4f4d\u4e8e xAxis: '\u661f\u671f\u56db', yAxis: 'm'\u3002\n          [  2,       'p',   2  ], \/\/ \u610f\u601d\u662f\u6b64\u70b9\u4f4d\u4e8e xAxis: '\u661f\u671f\u4e09', yAxis: 'p'\u3002\n          [  3,        3,    5  ]\n      ]&nbsp; \n}]<\/code><\/pre>\n<p><span style=\"background-color: initial;, Courier, monospace\"> <\/span>\u53cc\u7c7b\u76ee\u8f74\u7684\u793a\u4f8b\u53ef\u4ee5\u53c2\u8003&nbsp;Github Punchcard&nbsp;\u793a\u4f8b\u3002<\/li>\n<li>\u5f53\u67d0\u7ef4\u5ea6\u5bf9\u5e94\u4e8e\u65f6\u95f4\u8f74\uff08type \u4e3a&nbsp;'time'\uff09\u7684\u65f6\u5019\uff0c\u503c\u53ef\u4ee5\u4e3a\uff1a\n<ul>\n<li>\u4e00\u4e2a\u65f6\u95f4\u6233\uff0c\u5982&nbsp;1484141700832\uff0c\u8868\u793a UTC \u65f6\u95f4\u3002<\/li>\n<li>\u6216\u8005\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u65f6\u95f4\u63cf\u8ff0\uff1a\n<ul>\n<li>ISO 8601&nbsp;\u7684\u5b50\u96c6\uff0c\u53ea\u5305\u542b\u8fd9\u4e9b\u5f62\u5f0f\uff08\u8fd9\u51e0\u79cd\u683c\u5f0f\uff0c\u9664\u975e\u6307\u660e\u65f6\u533a\uff0c\u5426\u5219\u5747\u8868\u793a\u672c\u5730\u65f6\u95f4\uff0c\u4e0e&nbsp;moment&nbsp;\u4e00\u81f4\uff09\uff1a\n<ul>\n<li>\u90e8\u5206\u5e74\u6708\u65e5\u65f6\u95f4:&nbsp;'2012-03',&nbsp;'2012-03-01',&nbsp;'2012-03-01 05',&nbsp;'2012-03-01 05:06'.<\/li>\n<li>\u4f7f\u7528&nbsp;'T'&nbsp;\u6216\u7a7a\u683c\u5206\u5272:&nbsp;'2012-03-01T12:22:33.123',&nbsp;'2012-03-01 12:22:33.123'.<\/li>\n<li>\u65f6\u533a\u8bbe\u5b9a:&nbsp;'2012-03-01T12:22:33Z',&nbsp;'2012-03-01T12:22:33+8000',&nbsp;'2012-03-01T12:22:33-05:00'.<\/li>\n<\/ul>\n<\/li>\n<li>\u5176\u4ed6\u7684\u65f6\u95f4\u5b57\u7b26\u4e32\uff0c\u5305\u62ec\uff08\u5747\u8868\u793a\u672c\u5730\u65f6\u95f4\uff09:&nbsp;'2012',&nbsp;'2012-3-1',&nbsp;'2012\/3\/1',&nbsp;'2012\/03\/01',&nbsp;'2009\/6\/12 2:00',&nbsp;'2009\/6\/12 2:05:08',&nbsp;'2009\/6\/12 2:05:08.123'<\/li>\n<\/ul>\n<\/li>\n<li>\u6216\u8005\u7528\u6237\u81ea\u884c\u521d\u59cb\u5316\u7684 Date \u5b9e\u4f8b\uff1a\n<ul>\n<li>\u6ce8\u610f\uff0c\u7528\u6237\u81ea\u884c\u521d\u59cb\u5316 Date \u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u6d4f\u89c8\u5668\u7684\u884c\u4e3a\u6709\u5dee\u5f02\uff0c\u4e0d\u540c\u5b57\u7b26\u4e32\u7684\u8868\u793a\u4e5f\u4e0d\u540c\u3002<\/li>\n<li>\u4f8b\u5982\uff1a\u5728 chrome \u4e2d\uff0cnew Date('2012-01-01')&nbsp;\u8868\u793a UTC \u65f6\u95f4\u7684 2012 \u5e74 1 \u6708 1 \u65e5\uff0c\u800c&nbsp;new Date('2012-1-1')&nbsp;\u548c&nbsp;new Date('2012\/01\/01')&nbsp;\u8868\u793a\u672c\u5730\u65f6\u95f4\u7684 2012 \u5e74 1 \u6708 1 \u65e5\u3002\u5728 safari \u4e2d\uff0c\u4e0d\u652f\u6301&nbsp;new Date('2012-1-1')\u8fd9\u79cd\u8868\u793a\u65b9\u6cd5\u3002<\/li>\n<li>\u6240\u4ee5\uff0c\u4f7f\u7528&nbsp;new Date(dataString)&nbsp;\u65f6\uff0c\u53ef\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u89e3\u6790\uff08\u5982&nbsp;moment\uff09\uff0c\u6216\u8005\u4f7f\u7528&nbsp;echarts.number.parseDate\uff0c\u6216\u8005\u53c2\u89c1&nbsp;\u8fd9\u91cc\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5f53\u9700\u8981\u5bf9\u4e2a\u522b\u6570\u636e\u8fdb\u884c\u4e2a\u6027\u5316\u5b9a\u4e49\u65f6\uff1a<\/p>\n<p>\u6570\u7ec4\u9879\u53ef\u7528\u5bf9\u8c61\uff0c\u5176\u4e2d\u7684&nbsp;value&nbsp;\u50cf\u8868\u793a\u5177\u4f53\u7684\u6570\u503c\uff0c\u5982\uff1a<\/p>\n<pre><code>[\n    12,\n    34,\n    {\n        value : 56,\n        \/\/\u81ea\u5b9a\u4e49\u6807\u7b7e\u6837\u5f0f\uff0c\u4ec5\u5bf9\u8be5\u6570\u636e\u9879\u6709\u6548\n        label: {},\n        \/\/\u81ea\u5b9a\u4e49\u7279\u6b8a itemStyle\uff0c\u4ec5\u5bf9\u8be5\u6570\u636e\u9879\u6709\u6548\n        itemStyle:{}\n    },\n    10\n]\n\/\/ \u6216\n[\n    [12, 33],\n    [34, 313],\n    {\n        value: [56, 44],\n        label: {},\n        itemStyle:{}\n    },\n    [10, 33]\n]<\/code><\/pre>\n<p>\u7a7a\u503c\uff1a<\/p>\n<p>\u5f53\u67d0\u6570\u636e\u4e0d\u5b58\u5728\u65f6\uff08ps\uff1a\u4e0d\u5b58\u5728\u4e0d\u4ee3\u8868\u503c\u4e3a 0\uff09\uff0c\u53ef\u4ee5\u7528&nbsp;'-'&nbsp;\u6216\u8005&nbsp;null&nbsp;\u6216\u8005&nbsp;undefined&nbsp;\u6216\u8005&nbsp;NaN&nbsp;\u8868\u793a\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u65e0\u6570\u636e\u5728\u6298\u7ebf\u56fe\u4e2d\u53ef\u8868\u73b0\u4e3a\u8be5\u70b9\u662f\u65ad\u5f00\u7684\uff0c\u5728\u5176\u5b83\u56fe\u4e2d\u53ef\u8868\u793a\u4e3a\u56fe\u5f62\u4e0d\u5b58\u5728\u3002 <\/p>\n<\/li>\n<\/ul>\n<pre><code>tooltip<\/code><\/pre>\n<p>\u672c\u7cfb\u5217\u7279\u5b9a\u7684 tooltip \u8bbe\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728ECharts\u7cfb\u5217\u4e2d\uff0c\u4f7f\u7528series[i]-themeRiver\u8bbe\u7f6e\u4e3b\u9898\u6cb3\u6d41\u56fe\uff0c\u4e3b\u9898\u6cb3\u6d41\u56fe\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6d41\u56fe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":189605,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-189604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/189604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=189604"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/189604\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/189605"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=189604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=189604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=189604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}