Search the Community
Showing results for tags 'ios'.
Found 1 result
-
react-native React Native iOS events are not firing
veeramani.arthanari posted a topic in Javascript Problems
I'm trying to log the dataPlotClick event for stacked area 2d chart. But in iOS, the event is not triggering for any events. I've not tried yet in Android. But I've to make it work for both Platforms. Any help will be appreciated. my Code this.state = { type: 'column2d', width: '99%', height: '95%', dataFormat: 'json', dataSource: undefined, containerBackgroundColor: '#FFFFFF', calendarReturnsData: undefined, dataEmptyMessage: 'Insufficient data available', baseChartMessageFontSize: '16', baseChartMessageColor: '#454545', detailsBtnStateHolder: true, events: { dataplotclick: (e, a) => { Alert.alert(`You clicked on ${e.data.categoryLabel}`); } } }; In render method, I'm destructuring all the variables and assigning it to Fushion Chart. <FusionCharts type={type} width={width} height={height} dataFormat={dataFormat} dataSource={dataSource} containerBackgroundColor={containerBackgroundColor} dataEmptyMessage={dataEmptyMessage} baseChartMessageFontSize={baseChartMessageFontSize} baseChartMessageColor={baseChartMessageColor} events={events} libraryPath={ Platform.OS === 'ios' ? fusionChartiOSPath : fusionChartAndroidPath } />