{"id":53183,"date":"2024-12-03T12:04:35","date_gmt":"2024-12-03T04:04:35","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53183\/"},"modified":"2024-12-03T12:04:35","modified_gmt":"2024-12-03T04:04:35","slug":"%e5%a6%82%e4%bd%95%e7%94%a8echarts%e5%9c%a8%e6%9b%b2%e7%ba%bf%e5%9b%be%e4%b8%ad%e7%bb%98%e5%88%b6%e4%b8%80%e4%b8%aa%e4%ba%94%e8%a7%92%e6%98%9f%e6%a0%87%e8%ae%b0%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53183\/","title":{"rendered":"\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f<\/h1>\n<p>\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241127\/17327122526747173c72d08.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>echarts\u66f2\u7ebf\u56fe\u4e2d\u6807\u8bb0\u4e94\u89d2\u661f<\/strong><\/p>\n<p>\u5728echarts\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u4f5c\u4e3a\u663e\u7740\u6807\u8bb0\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u4f7f\u7528markpoint\u5c5e\u6027\u3002\u8be5\u5c5e\u6027\u5141\u8bb8\u5728\u6570\u636e\u70b9\u4e0a\u6dfb\u52a0\u6807\u8bb0\uff0c\u8fd9\u4e9b\u6807\u8bb0\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3a\u5404\u79cd\u5f62\u72b6\uff0c\u5305\u62ec\u4e94\u89d2\u661f\u3002 <\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>markPoint: {\n  data: [\n    {\n      type: 'max'\n    }\n  ],\n  symbol:\n    '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}<\/pre>\n<p>\u8fd9\u4e2a\u4ee3\u7801\u5757\u7684\u4f5c\u7528\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u5b83\u4f7f\u7528max\u7c7b\u578b\u5728\u6570\u636e\u4e2d\u7684\u6700\u5927\u503c\u4e0a\u6dfb\u52a0\u4e00\u4e2a\u6807\u8bb0\u3002 <\/li>\n<li>\u7136\u540e\uff0c\u5b83\u4f7f\u7528path:\/\/\u8bed\u6cd5\u5b9a\u4e49\u81ea\u5b9a\u4e49\u7684\u4e94\u89d2\u661f\u5f62\u72b6\u4f5c\u4e3a\u6807\u8bb0\u7b26\u53f7\u3002 <\/li>\n<li>symbolsize\u548csymboloffset\u5c5e\u6027\u53ef\u7528\u4e8e\u8c03\u6574\u6807\u8bb0\u5927\u5c0f\u548c\u4f4d\u7f6e\u3002 <\/li>\n<li>\u6700\u540e\uff0citemstyle\u5c5e\u6027\u5141\u8bb8\u81ea\u5b9a\u4e49\u6807\u8bb0\u7684\u989c\u8272\u3002 <\/li>\n<\/ul>\n<p>\u8fd9\u4e2a\u6807\u8bb0\u5c06\u51fa\u73b0\u5728\u66f2\u7ebf\u56fe\u4e0a\u6700\u5927\u6570\u636e\u70b9\u7684\u4f4d\u7f6e\uff0c\u5e76\u91c7\u7528\u9192\u76ee\u7684\u4e94\u89d2\u661f\u5f62\u72b6\u3002 <\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300a\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Mastering Python\u2019s __name__ and __main__: Understanding Script Execution and Module Imports\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f \u5b66\u4e60\u6587\u7ae0\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0\u300a\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u5c06\u4f1a\u4ecb\u7ecd\u5230\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60\u6587\u7ae0\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01 echarts\u66f2\u7ebf\u56fe\u4e2d\u6807\u8bb0\u4e94\u89d2\u661f \u5728echarts\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u4f5c\u4e3a\u663e\u7740\u6807\u8bb0\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a \u4f7f\u7528markpoint\u5c5e\u6027\u3002\u8be5\u5c5e\u6027\u5141\u8bb8\u5728\u6570\u636e\u70b9\u4e0a\u6dfb\u52a0\u6807\u8bb0\uff0c\u8fd9\u4e9b\u6807\u8bb0\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3a\u5404\u79cd\u5f62\u72b6\uff0c\u5305\u62ec\u4e94\u89d2\u661f\u3002 \u4ee3\u7801\u793a\u4f8b\uff1a 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: [0, 30], itemStyle: { color: &#8216;red&#8217; } } \u8fd9\u4e2a\u4ee3\u7801\u5757\u7684\u4f5c\u7528\uff1a \u9996\u5148\uff0c\u5b83\u4f7f\u7528max\u7c7b\u578b\u5728\u6570\u636e\u4e2d\u7684\u6700\u5927\u503c\u4e0a\u6dfb\u52a0\u4e00\u4e2a\u6807\u8bb0\u3002 \u7136\u540e\uff0c\u5b83\u4f7f\u7528path:\/\/\u8bed\u6cd5\u5b9a\u4e49\u81ea\u5b9a\u4e49\u7684\u4e94\u89d2\u661f\u5f62\u72b6\u4f5c\u4e3a\u6807\u8bb0\u7b26\u53f7\u3002 symbolsize\u548csymboloffset\u5c5e\u6027\u53ef\u7528\u4e8e\u8c03\u6574\u6807\u8bb0\u5927\u5c0f\u548c\u4f4d\u7f6e\u3002 \u6700\u540e\uff0citemstyle\u5c5e\u6027\u5141\u8bb8\u81ea\u5b9a\u4e49\u6807\u8bb0\u7684\u989c\u8272\u3002 \u8fd9\u4e2a\u6807\u8bb0\u5c06\u51fa\u73b0\u5728\u66f2\u7ebf\u56fe\u4e0a\u6700\u5927\u6570\u636e\u70b9\u7684\u4f4d\u7f6e\uff0c\u5e76\u91c7\u7528\u9192\u76ee\u7684\u4e94\u89d2\u661f\u5f62\u72b6\u3002 \u4eca\u5929\u5173\u4e8e\u300a\u5982\u4f55\u7528ECharts\u5728\u66f2\u7ebf\u56fe\u4e2d\u7ed8\u5236\u4e00\u4e2a\u4e94\u89d2\u661f\u6807\u8bb0\uff1f\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01 Mastering Python\u2019s __name__ and __main__: Understanding [&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-53183","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53183","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=53183"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53183\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}