Results 1 to 2 of 2

Thread: how to call a function when we click on legend item in charts

  1. #1
    Sencha User
    Join Date
    Oct 2014
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: how to call a function when we click on legend item in charts

    Hi,
    I am new to Extjs, can you please tell me how to call a function by passing legend label when we click on legend item in charts.
    Thanks

  2. Hi
    Found solution, we can call a function as follow
    Ext.define('Fiddle.override.chart.LegendItem', {
    override: 'Ext.chart.LegendItem',
    onMouseDown: function () {
    functionName(this.getLabelText());
    }
    });

  3. #2
    Sencha User
    Join Date
    Oct 2014
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Hi
    Found solution, we can call a function as follow
    Ext.define('Fiddle.override.chart.LegendItem', {
    override: 'Ext.chart.LegendItem',
    onMouseDown: function () {
    functionName(this.getLabelText());
    }
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •