
Echarts
lvxinaidou
这个作者很懒,什么都没留下…
展开
-
sheetName的改变
npm i xlsxnpm i xlsxpackage.json 里面多个 ,"xlsx": "^0.17.2"引用import { saveAs } from 'file-saver';import { utils, write } from 'xlsx';使用 sheetName这个就是要改的名字 exportExcel() { const worksheet = utils.json_to_sheet(this.getExcelData());.原创 2022-01-27 10:29:34 · 536 阅读 · 0 评论 -
循环多个散点图
tree.json[ { "title": "Ws基准版本", "children": [ { "title": "EMBMWA-C1", "children": [ { "title": "RA1", "children": [ { "title": "Rot", "isLeaf": true }, { "ti原创 2022-01-26 15:20:06 · 695 阅读 · 0 评论 -
散点图-日期
<div class="test"></div> let mytestcharts = echarts.init(document.querySelector('.test') as any); let option = { tooltip: { trigger: 'axis', formatter: function (params:any) { params = params[0]; .原创 2022-01-26 12:55:56 · 738 阅读 · 0 评论 -
Echarts-显示24小时得数据
<div class="test"></div>ngOnInit() {let mytestcharts = echarts.init(document.querySelector('.test') as any); let data1 = [ {name:'2022/12/18 6:38:08', value:['2022/12/18 6:38:08', 80]}, {name:'2022/12/18 16:18:18', value:['20原创 2022-01-25 11:17:28 · 1217 阅读 · 0 评论