<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <title>ECharts</title></head><body> <!--Step:1 Prepare a dom for ECharts which (must) has size (width & hight)--> &l
echarts x轴名称太长了,隐藏一部分,鼠标移到名称上,显示全称 function extension(mychart, type) { let extension = document.getElementById("extension"); mychart.on('mouseover', function (params) { if (params.componentType == type) { extension.innerHTML = params.value; let