Create gantt chart using timestamp

I have a json array which I am trying to feed into Influxdb using node js and visualize in grafana. Each json item of the array has same field, two of the fields are StartDate and EndDate, which are timestamps. I want to create a gantt chart for the data in grafana eventually but I am unable to push the two timestamps in influxdb and always get bad timestamp error. The data should be visualized on the two timestamp fields. How can I achieve this?

Welcome to forum @Pratiyush_Kumar

Can you please post sample json data?

Also please let me know what version of influx you are using, also how you are integrating us with grafana, i assume its the connector but just in case.