plotly / dash-alternative-viz

Dash components & demos to create Altair, Matplotlib, Highcharts , and Bokeh graphs within Dash apps.
https://dash.plotly.com
MIT License
7 stars 1 forks source link

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

Open muhammad-faizan-122 opened 1 year ago

muhammad-faizan-122 commented 1 year ago

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()