I have a use-case where I would like to offer extended information on a legend item on hover - the legend labels are fairly simple, but warrant an extended explanation that does not format nicely.
HI Etinenne,
I am wokring on angular 5 . As per the example give in you link.
How can bind Plotly.plot(gd, data).then(attach);
gd.on(âplotly_afterplotâ, attach);
Is there any an example in angular 5
I am doing this way:
Plotly.newPlot(this.el.nativeElement, this.graphData, layout, { displayModeBar: false });
I have all the data getting from back end in this.graphData,layout.
But not sure where to add Plotly.plot(gd, data).then(attach);
gd.on(âplotly_afterplotâ, attach);
Hi Etienne,
I am using the code you have suggest. Its working fine when there is one graph in the page.
But I have 2 graphs and both of them different attach property.
Its not working as I am using
var legendLayer = d3.select(âg.legendâ);
var items = legendLayer.selectAll(âg.tracesâ);
how can i get the legend ad traces of each graph. Please advise.
div id=âgraphâ div
Hi Etienne,
its not working . if I add var legendLayer = d3.select(âg.legendâ);
Here is the code pen https://codepen.io/anon/pen/MOqmpE
can you please look in to it.
I think few other developers are also looking a solution for this.
Its working but if we mouse over on the bottom graph the top one is also showing the tool tip.
Can we get it independently. Like if we mouse over on the bottom graph only its tool tip needs to be shown.
Can You please advise.
Here is the screen shot of the example.