2

How can I draw shapes like the ellipsis showed in the following image in Google Charts?

The data that I have to plot is better represented by the Scatter Chart, but I don't see how I could draw the lines and ellipsis knowing their equation.

chart with ellipsis

Jp_
  • 5,973
  • 4
  • 25
  • 36
  • add a row for each point along the ellipsis to the data table used to draw the chart. the more points, the more it will look like an ellipsis... – WhiteHat Oct 22 '19 at 18:41
  • I thought about something similar to this, but with this approach points of the ellipsis would react to mouse hovers, what's not the goal. – Jp_ Oct 22 '19 at 19:46
  • It seems to be possible using D3 based on this answer https://stackoverflow.com/questions/29755411/how-can-i-draw-an-autoscaling-d3-js-graph-that-plots-a-mathematical-function . But would be very nice to keep the solution in Google Charts. – Jp_ Oct 22 '19 at 20:41
  • 1
    you can turn off interactivity --> `enableInteractivity: false` – WhiteHat Oct 22 '19 at 20:52
  • It's seems to be a good approach, I might go for it because a lack of better options. The problem that I already can see with this is that the `enableInteractivity` options is by chart, so the real data points would lose mouse hover as well. – Jp_ Oct 22 '19 at 21:02
  • 1
    you can disable by series, using the `series` option, so you could add another column / series with a copy of the real data points. – WhiteHat Oct 22 '19 at 22:01

0 Answers0