Chartjs-Facing difficulty in opening a dialog from onClick event on a pie chart in angular 8 (using chart.js)

0๐Ÿ‘

โœ…

  var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{

  click: function(e){
    alert(  e.dataSeries.type+ ", dataPoint { x:" + e.dataPoint.x + ", y: "+ e.dataPoint.y + " }" );
   },

  },
 ]
 .
 .
});
chart.render();

Leave a comment