HighCharts: Labels visible over tooltip

前端 未结 7 1700
离开以前
离开以前 2020-12-01 09:45

Labels on my chart are showing over tooltip, which doesn\'t look very nice. I tried to play with zIndex, but to no result. How can I make tooltips not transpare

相关标签:
7条回答
  • 2020-12-01 10:26

    For Highchart tooltips with html format

    Highchart config

    tooltip: {
        borderWidth: 0,
        backgroundColor: "rgba(255,255,255,0)",
        shadow: false,
        useHTML: true
        ........
    },
    

    CSS:

    .highcharts-tooltip>span {
        background-color: #fff;
        border: 1px solid #172F8F;
        border-radius: 5px;
        opacity: 1;
        z-index: 9999!important;
        padding: .8em;
        left: 0!important;
        top: 0!important;
    }
    

    0 讨论(0)
提交回复
热议问题