{"id":53173,"date":"2024-12-03T10:26:45","date_gmt":"2024-12-03T02:26:45","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53173\/"},"modified":"2024-12-03T10:26:45","modified_gmt":"2024-12-03T02:26:45","slug":"%e5%9c%a8-echarts-%e6%9b%b2%e7%ba%bf%e5%9b%be%e4%b8%ad%e5%a6%82%e4%bd%95%e7%bb%98%e5%88%b6%e4%ba%94%e8%a7%92%e6%98%9f%e6%a0%87%e8%ae%b0%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53173\/","title":{"rendered":"\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f<\/h1>\n<p>\u4eb2\u7231\u7684\u7f16\u7a0b\u5b66\u4e60\u7231\u597d\u8005\uff0c\u5982\u679c\u4f60\u70b9\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff0c\u8bf4\u660e\u4f60\u5bf9\u300a\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u5f88\u611f\u5174\u8da3\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u7ed9\u5927\u5bb6\u8be6\u7ec6\u89e3\u6790\u4e00\u4e0b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u5e0c\u671b\u6240\u6709\u8ba4\u771f\u8bfb\u5b8c\u7684\u7ae5\u978b\u4eec\uff0c\u90fd\u6709\u5b9e\u8d28\u6027\u7684\u63d0\u9ad8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241127\/173270721967470393ed955.jpg\" class=\"aligncenter\" title=\"\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u63d2\u56fe\" alt=\"\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 echarts \u4e2d\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f <\/strong><\/p>\n<p>\u5728 echarts \u66f2\u7ebf\u56fe\u5f62\u4e2d\uff0c\u53ef\u4ee5\u5229\u7528 markpoint \u5c5e\u6027\u5728\u6570\u636e\u70b9\u4e0a\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6807\u8bb0\u5f62\u72b6\uff0c\u4ee5\u6b64\u6765\u7ed8\u5236\u663e\u7740\u7684\u56fe\u6807\u6807\u8bb0\uff0c\u4f8b\u5982\u4e94\u89d2\u661f\u3002 <\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>option = {\n  \/\/ ... \u5176\u4ed6\u914d\u7f6e\n  series: [\n    {\n      \/\/ ... \u5176\u4ed6\u914d\u7f6e\n      markPoint: {\n        data: [\n          {\n            type: 'max'\n          }\n        ],\n        symbol: 'path:\/\/M 200 200 l-40 100 100 -80 -120 0 100 80 -40 -120 -40 120z',\n        symbolSize: 30,\n        symbolOffset: [0, 30],\n        itemStyle: {\n          color: 'red'\n        }\n      }\n    }\n  ]\n};<\/pre>\n<p>\u5728\u6b64\u4ee3\u7801\u4e2d\uff0csymbol \u5c5e\u6027\u6307\u5b9a\u4e86\u81ea\u5b9a\u4e49\u6807\u8bb0\u5f62\u72b6\uff0c\u5176\u503c\u4e3a echarts \u5185\u7f6e\u7684\u4e94\u89d2\u661f\u8def\u5f84\u3002 itemstyle \u5c5e\u6027\u5219\u63a7\u5236\u6807\u8bb0\u7684\u989c\u8272\u3002 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u300a\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8e\u7684\u8d44\u6599\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Java\u865a\u62df\u673a\u542f\u52a8\u9519\u8bef\u8be5\u600e\u4e48\u529e Windows11\/10\u4e0a\u7684Java\u865a\u62df\u673a\u542f\u52a8\u5668\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f \u4eb2\u7231\u7684\u7f16\u7a0b\u5b66\u4e60\u7231\u597d\u8005\uff0c\u5982\u679c\u4f60\u70b9\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff0c\u8bf4\u660e\u4f60\u5bf9\u300a\u5728 ECharts \u66f2\u7ebf\u56fe\u4e2d\u5982\u4f55\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u5f88\u611f\u5174\u8da3\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u7ed9\u5927\u5bb6\u8be6\u7ec6\u89e3\u6790\u4e00\u4e0b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u5e0c\u671b\u6240\u6709\u8ba4\u771f\u8bfb\u5b8c\u7684\u7ae5\u978b\u4eec\uff0c\u90fd\u6709\u5b9e\u8d28\u6027\u7684\u63d0\u9ad8\u3002 \u5982\u4f55\u5728 echarts \u4e2d\u7ed8\u5236\u4e94\u89d2\u661f\u6807\u8bb0\uff1f \u5728 echarts \u66f2\u7ebf\u56fe\u5f62\u4e2d\uff0c\u53ef\u4ee5\u5229\u7528 markpoint \u5c5e\u6027\u5728\u6570\u636e\u70b9\u4e0a\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6807\u8bb0\u5f62\u72b6\uff0c\u4ee5\u6b64\u6765\u7ed8\u5236\u663e\u7740\u7684\u56fe\u6807\u6807\u8bb0\uff0c\u4f8b\u5982\u4e94\u89d2\u661f\u3002 \u4ee3\u7801\u793a\u4f8b\uff1a option = { \/\/ &#8230; \u5176\u4ed6\u914d\u7f6e series: [ { \/\/ &#8230; \u5176\u4ed6\u914d\u7f6e markPoint: { data: [ { type: &#8216;max&#8217; } ], symbol: &#8216;path:\/\/M 200 200 l-40 100 100 -80 -120 0 100 80 -40 -120 -40 120z&#8217;, symbolSize: 30, symbolOffset: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-53173","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=53173"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53173\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}