Can you please help me to get the start and end coordinates of a bar on gantt chart with x axis as datetime. I need to delete and update a bar on the bar and need to persist the change. For that i think i need start and end values which will be start time and end time of bar in Date.UTC.
Any hint is appreciable.
I tried with getSelectedPoints method but not able to access coordinates from it
Welcome to our forum and thanks for contacting us with your question!
Information about start and end of the point should be available on each point object. Here is a demo showing how you can read it: https://jsfiddle.net/BlackLabel/wks952pr/
Let me know if it was what you were looking for.
Regards!
I think i missed explaining it well, let me state my problem. On x axis i have datetime with 24 hour time (basically i am looking for a day with 24 hours on it) and on click of a button i am adding points to a series like this:
this.chartRef.series[0].addPoint(point); and persisting this data to the sessionstorage.
but say now i drag and drop this bar somewhere else on the chart say i have 4 categories and now i move the bar from category 1 to category three, then in that case how do i recalculate or find start and end value of updated point.
I can see that this is a duplicate post from other forum topic. We work as a single team across forum as well as other support platforms. Please do not duplicate your topics on multiple channels because it only disrupts our work. You do not have to worry because we always answer all questions on our support platforms.