dash-alternative-viz icon indicating copy to clipboard operation
dash-alternative-viz copied to clipboard

How can we convert this plotly graph into highcharts and also get the hover data?

Open muhammad-faizan-122 opened this issue 3 years ago • 0 comments

import plotly.graph_objects as go import numpy as np import plotly.express as px

df = px.data.gapminder().query("country=='Canada'") fig = go.Figure() fig.add_trace( go.Scatter( x=df["year"], y=df["pop"], name="line1", hoverinfo="text+name", line_shape="spline", mode="markers+lines", line=dict( color="Blue", width=4, ), ) ) fig.add_trace( go.Scatter( x=df["year"], y=df["lifeExp"], name="line2", hoverinfo="text+name", line_shape="vh", mode="markers", line=dict(color="red", width=5), ) )

fig.show()

muhammad-faizan-122 avatar Sep 27 '22 07:09 muhammad-faizan-122