How to place a text on morris.js bar graph

前端 未结 7 3063
無奈伤痛
無奈伤痛 2021-02-20 17:00

I have a morris.js bar graph. I want to place count on top of this graph. I looked into morris.js bar doc, could not find any.

On hover it should display

7条回答
  •  渐次进展
    2021-02-20 17:40

    enter link description here

          barColors:function(e){
          if(e.label=="2014"){
                            return "#EA7756";
                    }else if(e.label=="2015"){
                            return "#91D180";
                    }else{
                            return "#FDAA4C";
                    }
      }
    

提交回复
热议问题