简体   繁体   English

Flot自定义工具提示插件

[英]Flot Customizing tooltip Plugin

been doing well getting into Flot and using the plugins but I've come to a problem and its my lack of programming knowledge. 进入Flot并使用插件一直做得很好,但是我遇到了一个问题,这是我缺乏编程知识。 If anyone can help it would be appreciated. 如果有人可以帮助,将不胜感激。

I'm trying to customize the tooltip but I can't seem to link the id: "flotTip" to the css styling. 我正在尝试自定义工具提示,但似乎无法将id:“ flotTip”链接到CSS样式。 I have the grid as hoverable and added in the id: "flotTip" and set the defaultTheme to false. 我将网格设置为可悬停,并添加了ID:“ flotTip”,并将defaultTheme设置为false。

grid: { hoverable: true, borderWidth: {top: 0, right: 0, bottom: 2, left: 0}, borderColor: {bottom: "rgb(180,180,180)"}},

tooltip: true, tooltipOpts: { id: "flotTip", content: "%s %y %x", shifts: {x: 10,y: 20}, defaultTheme: false,} });

The CSS CSS

.flotTip {padding: 3px 5px;background-color: "rgba(250,100,100,0.5)";color: #000;box shadow: 0 0 10px #555;border: 2px solid #000;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;}

Any direction would help. 任何方向都会有所帮助。

Thanks Rob 谢谢罗布

The CSS selector for an id is #flotTip . ID的CSS选择器是#flotTip

.flotTip is for classes. .flotTip用于类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM