highcharts中数据列点击事件
2024-08-31 01:28:40
Highcharts.chart('container', {
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
cursor: 'pointer',
events: {
click: function (event) {
alert(
this.name + ' 被点击了\n' +
'最近点:' + event.point.category + '\n' +
'Alt 键: ' + event.altKey + '\n' +
'Ctrl 键: ' + event.ctrlKey + '\n' +
'Meta 键(win 键): ' + event.metaKey + '\n' +
'Shift 键:' + event.shiftKey
);
}
}
}
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
最新文章
- VB6.0 和VB.NET 函数对比
- word20161209
- IOS Animation-动画基础、深入
- 【BZOJ-3675】序列分割 DP + 斜率优化
- ListView配合CheckBox出现position位置错误的解决
- Storm(3) - Calculating Term Importance with Trident
- js中获取项目路径的小插件
- HDU 3436--Queue-jumpers (树状数组 or Splay Tree)
- 使用静态资源设置UI信息
- javascript判断浏览器
- Android项目的图标
- poj 3308 (最大流)
- 2301: [HAOI2011]Problem b ( 分块+莫比乌斯反演+容斥)
- Deep Learning Enables You to Hide Screen when Your Boss is Approaching
- MongoDB - 1
- python timeit模块简单用法
- windows 2008R2系统程序运行提示无法定位程序输入点ucrtbase.terminate
- Git 安装和使用教程(更加详细)
- Codeforces.997C.Sky Full of Stars(容斥 计数)
- Android App卡顿慢优化之解决内存抖动及内存泄漏
热门文章
- nginx报错zero size shared memory zone one
- 浏览器兼容性问题——IE不支持却很实用的CSS属性Outline和Child
- 【读书笔记】iOS-加速计与陀螺仪
- python自动化开发-8
- Linux 为linux enterprises 6安装图形桌面教程
- JavaScript日期排序
- Android View体系(七)从源码解析View的measure流程
- nginx的应用(window环境下)
- [IDEA] IntelliJ IDEA 安装教程
- 使用linq语句进行联表查询