开发者

making the pointlabels behind the highlighter in jqplot

开发者 https://www.devze.com 2023-03-05 03:03 出处:网络
I\'m trying to make a highlighter on a simple line graph, and no matter what开发者_StackOverflow中文版 I do, the pointlabel keeps being above the tooltip and hides the content

I'm trying to make a highlighter on a simple line graph, and no matter what开发者_StackOverflow中文版 I do, the pointlabel keeps being above the tooltip and hides the content

anyone has an idea of how to make it happen?


You must modify the jqplot css file:

.jqplot-highlighter-tooltip, .jqplot-canvasOverlay-tooltip {
    border: 1px solid #cccccc;
    font-size: 0.75em;
    white-space: nowrap;
    background: rgba(208,208,208,0.5);
    padding: 1px;
    z-index: 3;
}

Adding a z-index greater than the .jqplot-point-label has, must solve the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消