문제

I am trying to create a chart with custom tool tip. You can see the JSFIDDLE example here.

I have added a custom tooltip which does not appear. I can see the event fires(with the help of console.log) but the tooltip somehow does not appear(as if the rendering is not not happening) :(

 var tip = new Tooltip(c, "default", {
            text: function (o) {
                console.log(o);
                return (o.y);
            }
        });

Any hint to help me going ?

도움이 되었습니까?

해결책

It was just the case of missing CSS for the tooltip. I added the link to

http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/themes/claro/claro.css

and it worked fine. Thanks

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top