开发者

making the pointlabels behind the highlighter in jqplot

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜