21
Views
2
Comments
Call a client action in HighChartJson using $actions
Question

Hello

I would like to call a client action within the highchartsJson option.

I can call the same client action directly from a javascript widget but using the same syntax : $actions.myclientaction() in the highschartsjson property, I don't get any result.

Here is the xAxis section of my highchartsjson text : 

xAxis: {

    type: 'date',

   labels: {

                style: {   

                 fontSize: '12px', 

                 color : '#00AEEF' 

              }

    },

  events: {

                     afterSetExtremes: function(event) {   

                           $actions.zoomPeriod(event.min, event.max);                

                      }             

    } 

},

Any idea ?


Thx



2024-07-12 05-57-50
Gourav Shrivastava
Champion

@OLIVIER NINET,

Please check with this syntax

events: {

    afterSetExtremes : function(event) {

        $actions.zoomPeriod(event.xAxis[0].min, event.xAxis[0].max);

    }

}


Thanks,

Regards Gourav Shrivastava

UserImage.jpg
OLIVIER NINET

Hello @Gourav Shrivastava 

Thank you for your answer but it doens't work either

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.