Morris.js bar chart not rendering hover over text

穿精又带淫゛_ 提交于 2019-12-21 20:12:07

问题


I am using Morris.js Bar chart. For some reason, the numbers that were supposed to come on HOVER OVER are being listed on bottom left. Does any one why?


回答1:


Without any code it's hard to give a good answer. But, it has probably something to do with your CSS files.

Morris users this to place the hoover

CSS

.morris-hover{position:absolute;z-index:1000;}

JS morris.hover.coffee

Perhaps you have some CSS that conflicts with this?




回答2:


Yeah true the problem must be with css. Make sure that you have morris.css in stylesheets directory of your rails app and also remember to inlcude css in application.css by adding this line: *= require morris
at appropiate place. Had same problem and was solved by requiring css.



来源:https://stackoverflow.com/questions/14294900/morris-js-bar-chart-not-rendering-hover-over-text

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!