Ok, so I have just started with PlotyJS and need help with something I am stuck with:
I am working with hovertemplate
and need it to display the following formate:
Country: COUNTRY_NAME,
Total Deaths: X_AXIS,
Total Cases: Y_AXIS,
Active Cases: PLOT_SIZE*4000,
Now the problem is clear, first, where do I define COUNTRY_NAME if I can’t define it in one of the parameters of the go.Scatter
, second, how do I numerically work with the Active Cases
in which I have to multiply the plot size with 4000(as I used it as my prefered value for showing all the plots)
one solution may be to use costomdata
but I can’t get it to work for more than one use case(Active Cases
), as if I use something like %{customdata[0]}
where my list is something like:
customdata = [
[Active Cases ,data],
[Country, data]
]
Does anyone know a way around?
Thanks,
Dex Devlon