I tried to experiment with a Google line chart embedded inside a div
element. That div element was set as draggable and a target dropoff div was
created. I added the necessary javascript code (event listener for
dragstart, etc..).
The result was that I was able to drag and drop the Line chart onto the
target div.
The data transfer event was via *event*.*dataTransfer.setData('text/html',
event.target.innerHTML)*;
The problem is that it dragged/dropped chart is a copy image of the
original line chart. The dropped chart doesn't support the active events.
For example the original line chart supports line highlighting (Google
original example:
https://developers.google.com/chart/interactive/docs/gallery/linechart )
and the dropped objects appears to be an image.
Is it possible to drag/drop data transfer the chart so it remains active as
well?
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/jBJG1j_7ILsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.