Hi Ta Quoc,
We have modified the sample based on the chart swipe direction, we have added a data point at the start when the swipe direction is start and added a data point at the end when the swipe direction is end, then update the data using the updateDataSource method. We have shared the modified sample below for your reference.
Please get back to us if you need any further assistance on this.
Regards,
Yuvaraj.
Attachment:
f181191_846cc37e.zip