echarts获取点击事件,详细参数

浪淘沙2年前前端212

myChart.on('click', (params) => {

    console.log(`你点击了系列 ${params.name}`);

    console.log(`该数据点在 series 中的索引是 ${params.seriesIndex}`);

    console.log(`该数据点在 data 中的索引是 ${params.dataIndex}`);

    console.log(`该数据点的值是 ${params.value}`);

    console.log(`该数据点的完整信息是`, params.data);

    console.log(`该数据点的颜色是 ${params.color}`);

});


相关文章

layui 静态html table 表头会固定在顶部

@page @model xxtsoft.Web.Entry.Pages.sysadmins.mb.mbModel @{     Layout&...

layui table后端接口html代码,前端显示

  , { field: 'dwbq', title: '单位标签', width:&n...

layui span绑定form值

layui span绑定form值

  span{       display: block;     ...

layui多级表头,行高,序号,fixed固定对不齐问题

layui多级表头,行高,序号,fixed固定对不齐问题

<style>             /* 表头文字垂...

asp.net code webapi layui ajax post表单数据

using System; using System.Collections.Generic; using System.Linq; using Syst...

layui 下拉搜索,多选,form提交

https://codecp.tech/static/xm-select/?lalalalalala=1#/basic/use<div style="margin:100px...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。