自定义highchart tooltip
来源:互联网 发布:电脑屏幕防蓝光软件 编辑:程序博客网 时间:2024/06/05 10:11
贴一段自定义highchart tooltip的代码
实线了垮series的计算和顺序切换
formatter: function () { // var str = getTooltip(this); var str = '<b>' + Highcharts.dateFormat(config_timelabelformats.day, this.x) + '</b>'; var ele = null; $.each(this.points, function () { if(this.series.name == highstock_local()['electricity']){ ele = this; }else if(this.series.name == highstock_local()['net_income']){ if(ele == null){ str += '<br/>' + this.series.name + ":" + this.y; }else{ if(ele.series.visible == true && this.series.visible == true){ str += '<br/>' + highstock_local()['payout'] + ":" + (this.y + ele.y); str += '<br/>' + highstock_local()['electricity'] + ":" + (ele.y); }else{ str += '<br/>' + highstock_local()['electricity'] + ":" + (ele.y); } } }else{ str += '<br/>' + this.series.name + ': ' + this.y; } }); return str; }
0 0
- 自定义highchart tooltip
- 自定义ToolTip
- 自定义ToolTip
- ToolTip自定义
- 自定义tooltip
- 自定义tooltip
- highchart columnrange自定义颜色
- 自定义ToolTip组件
- 如何自定义ToolTip
- wpf 自定义Tooltip template
- 如何自定义ToolTip
- Jquery自定义tooltip
- wpf toolTip自定义
- ECharts 自定义动态tooltip
- highchart
- highchart
- highchart
- WPF中ToolTip的自定义
- js方法中,参数带空格,导致出错
- UITextField常用方法总结
- 【2015-2】day11 一道点分治的问题
- Eclipse常用快捷键总结(方便查阅)
- ios-day08-01(模仿QQ聊天界面。ios通知的使用(对键盘状态的监听)、枚举和分类的使用、拉伸图片、计算文本字符串的尺寸
- 自定义highchart tooltip
- VS编译Casablanca库的问题;
- QString与Char* 之间的转换
- PHP内核探索:单进程SAPI生命周期
- C++项目中的extern "C"
- 操作系统之线程篇1
- 黑马程序员——IO包中的其他类
- Codeforces Round #294 (Div. 2)
- VC++2010 中 IntelliSense: 无法打开 源 文件 "stdafx.h"