【问题标题】:kendo chart lines and series hover剑道图表线和系列悬停
【发布时间】:2016-08-02 15:04:54
【问题描述】:

我正在尝试解决我的剑道图表中的问题。当mousse悬停在系列上时,悬停效果很好,但是当我想知道它在行中的值时,它没有出现,我不知道为什么。

$("#chart1").data("kendoChart").setOptions({
        categoryAxis: [{

            majorGridLines: {
                visible: true,
                step: 10
            },
            line: {
                visible: false
            },
            labels: {
                rotation: 'auto'
            },
            notes: {
                icon: {
                    type: 'square', 
                },
                data:[{
                    value: this.selectionPosStart,
                    label: { 
                        text: 'P',
                        background: color1,
                        color: 'white'
                    },
                    line: {
                        color: color1,
                        length: lenght,
                        width: 2,
                    }
                }, {
                    value: this.selectionPosEnd,
                    label: { 
                        text: 'D',
                        background: color2,
                        color: 'white'
                    },
                    line: {
                        color: color2,
                        opacity: 0.5,
                        length: length,
                        width: 2
                    }
                }],
            }
        }],
        valueAxis: {
            majorUnit: 1
        },    
    });

谢谢!

【问题讨论】:

    标签: javascript css html kendo-ui kendo-chart


    【解决方案1】:

    你没有使用过提示属性,例如

    tooltip: {
                        visible: true,
                        template: "#= series.name #: #= value #"
                    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-19
      • 2014-01-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多