如何更改字幕而不是标题?

series: {
              cursor: 'pointer',
              point: {
                events: {
                 click: function() {//alert ('Category: '+ this.category +', value: '+ this.y);

                     var drilldown = this.drilldown;
                     if (drilldown) { // drill down

                         this.series.chart.setTitle({
                             text: drilldown.name
                         });

                     } else { // restore

                     }
                 }
                }
              }
           }
        },


会是这样的吗:

this.series.chart.setSubTitle({
                                 text: 'vlabla'
                          });


我尝试了上面的它不起作用

请帮助任何人?

最佳答案

图表中有drilldowndrillup事件可用于调用chart.setTitle()。要仅设置字幕并保持标题不变,可以将标题选项对象设置为null:

      chart.setTitle(null, {
        text: "after drilldown subtitle" //subtitle options
      });


示例:http://jsfiddle.net/axdcLmfx/

10-01 04:24