Example of undefined in React Chart Component

/
/
ClickAddPoint

This sample illustrates a chart that allows users to add new data and update existing data source by clicking in the chart area. Additionally, clicking on an existing point will remove that data from the existing data source.

More Details...

Loading....
Description

In this example, the X-Axis and Y-Axis data of the currently clicked location are retrieved from the chartMouseClick event arguments and converted into a new point. This point is then added to the existing datasource. If there is already a point with the same coordinates present, it will be removed from the existing datasource.

Injecting Module

Chart component features are segregated into individual feature-wise modules. To use the line series, we need to inject the LineSeries module using Chart.Inject(LineSeries) method.

More information on the line series can be found in this documentation section.