{"id":25928,"date":"2024-11-24T15:31:46","date_gmt":"2024-11-24T07:31:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25928\/"},"modified":"2024-11-24T15:31:46","modified_gmt":"2024-11-24T07:31:46","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-echart-%e6%8a%98%e7%ba%bf%e5%9b%be%e4%b8%ad%e8%ae%be%e7%bd%ae%e5%a4%9a%e7%a7%8d-markpoint%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25928\/","title":{"rendered":"\u5982\u4f55\u5728 EChart \u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u591a\u79cd MarkPoint\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173072757129390.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5728 EChart \u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u591a\u79cd MarkPoint\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728 EChart \u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u591a\u79cd MarkPoint\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 echart \u4e2d\u8bbe\u7f6e\u591a\u79cd markpoint<\/strong><\/p>\n<p>\u5728 EChart \u6298\u7ebf\u56fe\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 MarkPoint \u6765\u7a81\u51fa\u663e\u793a\u6570\u636e\u4e2d\u7684\u5173\u952e\u70b9\u3002\u901a\u5e38\uff0c\u4e3a\u4e86\u533a\u5206\u4e0d\u540c\u7c7b\u578b\u7684 MarkPoint\uff0c\u6211\u4eec\u9700\u8981\u4e3a\u5176\u8bbe\u7f6e\u4e0d\u540c\u7684\u6837\u5f0f\u548c\u542b\u4e49\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u8981\u5b9a\u4e49\u591a\u79cd MarkPoint\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 MarkPoint\u3002\u5bf9\u4e8e\u6bcf\u4e2a MarkPoint\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u4ee5\u4e0b\u5c5e\u6027\uff1a<\/p>\n<ul>\n<li>name: MarkPoint \u7684\u540d\u79f0\uff0c\u7528\u4e8e\u6807\u8bc6\u5b83\u3002<\/li>\n<li>value: MarkPoint \u7684\u503c\uff0c\u901a\u5e38\u662f\u6570\u636e\u5e8f\u5217\u4e2d\u7684\u4e00\u4e2a\u503c\u3002<\/li>\n<li>symbol: MarkPoint \u7684\u5f62\u72b6\uff0c\u53ef\u4ee5\u662f\u5706\u5f62\u3001\u65b9\u5f62\u3001\u4e09\u89d2\u5f62\u7b49\u3002<\/li>\n<li>itemStyle: MarkPoint \u6837\u5f0f\uff0c\u5305\u62ec\u989c\u8272\u3001\u5927\u5c0f\u548c\u8fb9\u6846\u3002<\/li>\n<li>label: MarkPoint \u6807\u7b7e\uff0c\u5305\u62ec\u6587\u672c\u3001\u4f4d\u7f6e\u548c\u683c\u5f0f\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong><\/p>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u5728\u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u4e0d\u540c\u79cd\u7c7b\u7684 MarkPoint\uff1a<\/p>\n<pre>var chart = echarts.init(document.getElementById('container'));\n\nvar option = {\n  xAxis: {\n    type: 'category',\n    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n  },\n  yAxis: {\n    type: 'value'\n  },\n  series: [{\n    data: [820, 932, 901, 934, 1290, 1330, 1120],\n    type: 'line',\n    markPoint: {\n      data: [\n        { name: 'High', value: 1330, symbol: 'circle', itemStyle: { color: 'red' } },\n        { name: 'Low', value: 820, symbol: 'square', itemStyle: { color: 'green' } },\n        { name: 'Average', value: 1048, symbol: 'triangle', itemStyle: { color: 'blue' } }\n      ]\n    }\n  }]\n};\n\nchart.setOption(option);<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u6bcf\u4e2a MarkPoint \u6307\u5b9a\u4e0d\u540c\u7684\u6837\u5f0f\u548c\u542b\u4e49\uff0c\u4ece\u800c\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u6570\u636e\u4e2d\u7684\u5173\u952e\u4fe1\u606f\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 EChart \u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u591a\u79cd MarkPoint\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 echart \u4e2d\u8bbe\u7f6e\u591a\u79cd markpoint \u5728 EChart \u6298\u7ebf\u56fe\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 MarkPoint \u6765\u7a81\u51fa\u663e\u793a\u6570\u636e\u4e2d\u7684\u5173\u952e\u70b9\u3002\u901a\u5e38\uff0c\u4e3a\u4e86\u533a\u5206\u4e0d\u540c\u7c7b\u578b\u7684 MarkPoint\uff0c\u6211\u4eec\u9700\u8981\u4e3a\u5176\u8bbe\u7f6e\u4e0d\u540c\u7684\u6837\u5f0f\u548c\u542b\u4e49\u3002 \u89e3\u51b3\u65b9\u6cd5 \u8981\u5b9a\u4e49\u591a\u79cd MarkPoint\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 MarkPoint\u3002\u5bf9\u4e8e\u6bcf\u4e2a MarkPoint\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u4ee5\u4e0b\u5c5e\u6027\uff1a name: MarkPoint \u7684\u540d\u79f0\uff0c\u7528\u4e8e\u6807\u8bc6\u5b83\u3002 value: MarkPoint \u7684\u503c\uff0c\u901a\u5e38\u662f\u6570\u636e\u5e8f\u5217\u4e2d\u7684\u4e00\u4e2a\u503c\u3002 symbol: MarkPoint \u7684\u5f62\u72b6\uff0c\u53ef\u4ee5\u662f\u5706\u5f62\u3001\u65b9\u5f62\u3001\u4e09\u89d2\u5f62\u7b49\u3002 itemStyle: MarkPoint \u6837\u5f0f\uff0c\u5305\u62ec\u989c\u8272\u3001\u5927\u5c0f\u548c\u8fb9\u6846\u3002 label: MarkPoint \u6807\u7b7e\uff0c\u5305\u62ec\u6587\u672c\u3001\u4f4d\u7f6e\u548c\u683c\u5f0f\u3002 \u793a\u4f8b \u4e0b\u9762\u7684\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u5728\u6298\u7ebf\u56fe\u4e2d\u8bbe\u7f6e\u4e0d\u540c\u79cd\u7c7b\u7684 MarkPoint\uff1a var chart = echarts.init(document.getElementById(&#8216;container&#8217;)); var option = { xAxis: { type: &#8216;category&#8217;, data: [&#8216;Mon&#8217;, &#8216;Tue&#8217;, &#8216;Wed&#8217;, &#8216;Thu&#8217;, &#8216;Fri&#8217;, &#8216;Sat&#8217;, &#8216;Sun&#8217;] [&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-25928","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25928","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=25928"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25928\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}