text_html_output_2.png
import pandas as pd

import plotly.express as px

import plotly.graph_objects as go

symptoms = {'symptom': ['Fever', 'Dry cough', 'Fatigue', 'Sputum production', 'Shortness of breath', 'Muscle pain', 'Sore throat', 'Headache', 'Chills', 'Nausea or vomiting', 'Nasal congestion', 'Diarrhoea', 'Haemoptysis', 'Conjunctival congestion'], 'percentage': [87.9, 67.7, 38.1, 33.4, 18.6, 14.8, 13.9, 13.6, 11.4, 5.0, 4.8, 3.7, 0.9, 0.8]}
symptoms = pd.DataFrame(data=symptoms, index=range(14))

fig = px.pie(symptoms,
             values="percentage",
             names="symptom",
             title="Symtoms of Coronavirus",
             template="seaborn")
fig.update_traces(rotation=90, pull=0.05, textinfo="value+percent+label")
fig.show()

link = 'https://api.covid19india.org/csv/latest/state_wise.csv'
df = pd.read_csv(link)
df = df.drop(df.index[0])

Date = df['Last_Updated_Time'].values.tolist()
State = df['State'].values.tolist()
Confirmed = df['Confirmed'].values.tolist()
Recovered = df['Recovered'].values.tolist()
Active = df['Active'].values.tolist()
Deaths = df['Deaths'].values.tolist()

import plotly.graph_objects as go
fig = go.Figure(data=[go.Bar(name='Active', x=State, y=Active), go.Bar(name='Recovered', x=State, y=Recovered), go.Bar(name='Deaths', x=State, y=Deaths)])
fig.update_layout(autosize=False, width=950, height=700, margin=dict(l=50, r=50, b=100, t=100, pad=4), paper_bgcolor='LightSteelBlue', title='Statewise Covid19 Case on ' + str(Date[0][0:10]) + ' Last Update at' + str(Date[0][10:]))
fig.update_layout(barmode='stack')

fig = px.pie(df, values=Confirmed, names=State, title='Statewise Confirmed Case')
fig.show()