Thu Apr 28, 2022 10:56 am
Hi mateusz.b
Thank you so much for your reply
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:
const point =
{ start: Date.UTC(
this.t1.getFullYear(),
this.t1.getMonth(),
this.t1.getDate() ),
end: Date.UTC(
this.t1.getFullYear(),
this.t1.getMonth(),
this.t1.getDate(),
0, 60
),
name: ob.product,
y: ob.i,
color: '#CAECF3',
id: this.counter
}
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.
thanks