2016-08-02 74 views
0

我想解決我的劍道圖中的問題。在系列懸停工作正常,當慕斯懸停在系列,但是當我想知道它的價值在線,它不會出現,我不知道爲什麼。劍道圖線和系列懸停

$("#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 
     },  
    }); 

謝謝!

回答

0

您還沒有使用tooltip屬性,例如

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