You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to do Multiple Selection of Timeline Segments using Cursor Drag (click+Drag) and Handling the selection of those segments to store the info and update their UI based on our logic
#120
Open
shashimayaai opened this issue
Jul 14, 2022
· 0 comments
I want to do selection of multiple segments of timeline chart. I need to have an event callback similar to onSegmentClick([function]). User shall be able to click on a segment and drag. It shall be able to do multiselection similar to Microsoft excel sheet cells.
If there is drag event in timeline chart, I intend to have a handler for it and write my logic in that. Is there such a function ?
If drag event does not exist at the level of timeline event, should I handle mouse click, mouse move and mouse up myself and simulate event?
It is not working. Do we have event called 'drag' ? Or should it be simulated?
If drag event is not available in SVG, how to simulate that? I want to get drag event along with information of the specific element on which user clicks.
The text was updated successfully, but these errors were encountered:
I want to do selection of multiple segments of timeline chart. I need to have an event callback similar to onSegmentClick([function]). User shall be able to click on a segment and drag. It shall be able to do multiselection similar to Microsoft excel sheet cells.
If there is drag event in timeline chart, I intend to have a handler for it and write my logic in that. Is there such a function ?
If drag event does not exist at the level of timeline event, should I handle mouse click, mouse move and mouse up myself and simulate event?
onNgOnInit {
console.log("svg representation " + this.mychart.getSvg()); this.mychart.getSvg(); var svg = d3.select("svg") .on("drag", this.startDrag); }
function startDrag(evt) { console.log("Start drag event fired "); }
Questions:
The text was updated successfully, but these errors were encountered: