is it possible to trigger the
beforeDataSubmit
event from
selectionEndFun
function
<fusioncharts
#fusionChartId2
width="700"
height="400"
type="selectscatter"
dataFormat="json"
[dataSource]="dataSource"
(beforeDataSubmit)="beforeDataSubmitFunc($event)"
(selectionEnd)="selectionEndFunc($event)"
To trigger the beforeDataSubmit event from the selectionEndFunc event in Angular, you'll need to use the @ViewChild decorator to get a reference to the FusionCharts component in your component class. Then, you can call the beforeDataSubmit method on that reference to manually trigger the event. Below I have written the code
By using the @ViewChild decorator to get a reference to the FusionCharts component, you can access its methods and properties, allowing you to trigger events programmatically.It will work :D