摘要: // 动态获取数据 function getData(){ var request = new XMLHttpRequest(); request.open("get","http://localhost:3000/get_chart"); request.send(); request.onrea 阅读全文
posted @ 2020-11-02 22:51 云里知音 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 1、第一种写法 window.onresize = function(){ myChart.resize(); // myChart.resize(); } 2、第二种写法 window.addEventListener("resize",function(){ myChart.resize(); 阅读全文
posted @ 2020-11-02 22:42 云里知音 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: option = { xAxis: { type: 'category', data: ['河南', '河北', '江苏', '新疆', '北京', '山东', '山西',"商丘","平顶山"], axisTick: {show: false}, axisLabel:{ rotate:40, } } 阅读全文
posted @ 2020-11-02 17:30 云里知音 阅读(98) 评论(0) 推荐(0) 编辑
摘要: series中的markpoint样式 ECharts提供的默认标记类型样式: "circle ", "rect", "roundRect, 'triangle', 'diamond', 'pin', 'arrow', 'none' 如果自定义样式,有以下两种方式: 1、通过 'image://ur 阅读全文
posted @ 2020-11-02 16:00 云里知音 阅读(7041) 评论(0) 推荐(1) 编辑
摘要: var index = 0; var colorList = ['#fff', '#000']; option = { // backgroundColor:"#17326b", grid:{ left:"80", top:"10", right:"60", bottom:"60", contain 阅读全文
posted @ 2020-11-02 10:18 云里知音 阅读(150) 评论(0) 推荐(0) 编辑