{"id":52969,"date":"2024-12-03T08:44:50","date_gmt":"2024-12-03T00:44:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52969\/"},"modified":"2024-12-03T08:44:50","modified_gmt":"2024-12-03T00:44:50","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-echarts-%e7%9a%84-markpoint-%e5%ae%9a%e4%b9%89%e4%b8%8d%e5%90%8c%e7%b1%bb%e5%9e%8b%e7%9a%84%e6%95%b0%e6%8d%ae%e6%a0%87%e8%ae%b0%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52969\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f <\/h1>\n<p>\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u7ec3\u4e60\u624d\u80fd\u719f\u7ec3\u8fd0\u7528\u3002\u4e0b\u9762\u7c73\u4e91\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u5b9e\u6218\uff0c\u624b\u628a\u624b\u6559\u5927\u5bb6\u5b66\u4e60\u300a\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f \u300b\uff0c\u5728\u5b9e\u73b0\u529f\u80fd\u7684\u8fc7\u7a0b\u4e2d\u4e5f\u5e26\u5927\u5bb6\u91cd\u65b0\u6e29\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6e29\u6545\u800c\u77e5\u65b0\uff0c\u56de\u5934\u770b\u770b\u8bf4\u4e0d\u5b9a\u53c8\u6709\u4e0d\u4e00\u6837\u7684\u611f\u609f\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241125\/17325038326743e918bd1fe.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 ECharts \u4e2d\u5b9a\u4e49\u5404\u79cd MarkPoint<\/strong><\/p>\n<p>\u5728ECharts\u4e2d\uff0cMarkPoint\u7528\u4e8e\u5728\u56fe\u8868\u4e2d\u5f3a\u8c03\u7279\u5b9a\u6570\u636e\u70b9\u6216\u503c\u3002\u4e00\u4e2a\u6298\u7ebf\u56fe\u4e2d\u53ef\u4ee5\u8bbe\u7f6e\u591a\u79cd\u7c7b\u578b\u7684MarkPoint\uff0c\u4ee5\u8868\u793a\u4e0d\u540c\u7684\u542b\u4e49\u6216\u91cd\u8981\u6027\u7a0b\u5ea6\u3002<\/p>\n<p>\u8981\u81ea\u5b9a\u4e49\u6807\u8bb0\u70b9\uff0c\u53ef\u4ee5\u4f7f\u7528 markPoint.data \u9009\u9879\u3002\u5b83\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u8868\u793a\u4e00\u4e2a\u6807\u8bb0\u70b9\u3002\u6bcf\u4e2a\u5143\u7d20\u53ef\u4ee5\u5305\u542b\u4ee5\u4e0b\u5c5e\u6027\uff1a<\/p>\n<ul>\n<li>name: \u6807\u8bb0\u70b9\u7684\u540d\u79f0<\/li>\n<li>value: \u6807\u8bb0\u70b9\u6240\u5173\u8054\u7684\u6570\u636e\u503c<\/li>\n<li>symbol: \u6807\u8bb0\u70b9\u7684\u5f62\u72b6\uff0c\u4f8b\u5982 &#8220;circle&#8221;\u3001&#8221;rect&#8221; \u6216\u81ea\u5b9a\u4e49\u56fe\u50cf<\/li>\n<li>symbolSize: \u6807\u8bb0\u70b9\u7684\u5c3a\u5bf8<\/li>\n<li>itemStyle: \u6807\u8bb0\u70b9\u7684\u6837\u5f0f\uff0c\u5305\u62ec\u989c\u8272\u3001\u8fb9\u6846\u548c\u6587\u672c<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u5b9a\u4e49\u4e86\u4e09\u79cd\u4e0d\u540c\u7c7b\u578b\u7684MarkPoint\uff1a<\/p>\n<pre>markPoint: {\n    data: [\n        {name: '\u6700\u9ad8\u503c', value: 100, symbol: 'circle', symbolSize: 10, itemStyle: {color: 'red'}},\n        {name: '\u6700\u4f4e\u503c', value: 0, symbol: 'rect', symbolSize: 10, itemStyle: {color: 'blue'}},\n        {name: '\u5e73\u5747\u503c', value: 50, symbol: 'diamond', symbolSize: 10, itemStyle: {color: 'green'}}\n    ]\n}<\/pre>\n<p>\u8fd9\u6837\uff0c\u6298\u7ebf\u56fe\u5c06\u663e\u793a\u4e09\u4e2a\u4e0d\u540c\u5f62\u72b6\u548c\u989c\u8272\u7684\u6807\u8bb0\u70b9\uff0c\u5206\u522b\u8868\u793a\u6700\u9ad8\u503c\u3001\u6700\u4f4e\u503c\u548c\u5e73\u5747\u503c\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300a\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f \u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591a\u6587\u7ae0\u77e5\u8bc6\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   TypeScript\u51fd\u6570\u53c2\u6570\u7ea6\u675f\u4e0e\u7ed3\u679c\u63a8\u65ad\uff1a\u5982\u4f55\u89e3\u51b3\u7c7b\u578b\u63a8\u65ad\u4e0d\u51c6\u786e\u7684\u95ee\u9898\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f \u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u7ec3\u4e60\u624d\u80fd\u719f\u7ec3\u8fd0\u7528\u3002\u4e0b\u9762\u7c73\u4e91\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u5b9e\u6218\uff0c\u624b\u628a\u624b\u6559\u5927\u5bb6\u5b66\u4e60\u300a\u5982\u4f55\u4f7f\u7528 ECharts \u7684 MarkPoint \u5b9a\u4e49\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6807\u8bb0\uff1f \u300b\uff0c\u5728\u5b9e\u73b0\u529f\u80fd\u7684\u8fc7\u7a0b\u4e2d\u4e5f\u5e26\u5927\u5bb6\u91cd\u65b0\u6e29\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6e29\u6545\u800c\u77e5\u65b0\uff0c\u56de\u5934\u770b\u770b\u8bf4\u4e0d\u5b9a\u53c8\u6709\u4e0d\u4e00\u6837\u7684\u611f\u609f\uff01 \u5982\u4f55\u5728 ECharts \u4e2d\u5b9a\u4e49\u5404\u79cd MarkPoint \u5728ECharts\u4e2d\uff0cMarkPoint\u7528\u4e8e\u5728\u56fe\u8868\u4e2d\u5f3a\u8c03\u7279\u5b9a\u6570\u636e\u70b9\u6216\u503c\u3002\u4e00\u4e2a\u6298\u7ebf\u56fe\u4e2d\u53ef\u4ee5\u8bbe\u7f6e\u591a\u79cd\u7c7b\u578b\u7684MarkPoint\uff0c\u4ee5\u8868\u793a\u4e0d\u540c\u7684\u542b\u4e49\u6216\u91cd\u8981\u6027\u7a0b\u5ea6\u3002 \u8981\u81ea\u5b9a\u4e49\u6807\u8bb0\u70b9\uff0c\u53ef\u4ee5\u4f7f\u7528 markPoint.data \u9009\u9879\u3002\u5b83\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u8868\u793a\u4e00\u4e2a\u6807\u8bb0\u70b9\u3002\u6bcf\u4e2a\u5143\u7d20\u53ef\u4ee5\u5305\u542b\u4ee5\u4e0b\u5c5e\u6027\uff1a name: \u6807\u8bb0\u70b9\u7684\u540d\u79f0 value: \u6807\u8bb0\u70b9\u6240\u5173\u8054\u7684\u6570\u636e\u503c symbol: \u6807\u8bb0\u70b9\u7684\u5f62\u72b6\uff0c\u4f8b\u5982 &#8220;circle&#8221;\u3001&#8221;rect&#8221; \u6216\u81ea\u5b9a\u4e49\u56fe\u50cf symbolSize: \u6807\u8bb0\u70b9\u7684\u5c3a\u5bf8 itemStyle: \u6807\u8bb0\u70b9\u7684\u6837\u5f0f\uff0c\u5305\u62ec\u989c\u8272\u3001\u8fb9\u6846\u548c\u6587\u672c \u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u5b9a\u4e49\u4e86\u4e09\u79cd\u4e0d\u540c\u7c7b\u578b\u7684MarkPoint\uff1a markPoint: { data: [ {name: &#8216;\u6700\u9ad8\u503c&#8217;, value: 100, symbol: &#8216;circle&#8217;, symbolSize: 10, itemStyle: {color: &#8216;red&#8217;}}, {name: &#8216;\u6700\u4f4e\u503c&#8217;, value: 0, symbol: &#8216;rect&#8217;, symbolSize: 10, [&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-52969","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52969","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=52969"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52969\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}