Gratitude graph by ChatGPT

Daily Graphing
Feb 27, 2023

--

import plotly.express as px
import pandas as pd

# Create sample data
data = pd.DataFrame({
‘category’: [‘Family’, ‘Friends’, ‘Work’, ‘Health’, ‘Hobbies’],
‘gratitude’: [23, 17, 12, 28, 20]
})

# Create the bar chart
fig = px.bar(data, x=’category’, y=’gratitude’, color=’category’)

# Customize the chart
fig.update_layout(
title=’Gratitude by Category’,
xaxis_title=’Category’,
yaxis_title=’Gratitude Count’
)

# Display the chart
fig.show()

--

--

Daily Graphing

My goal is to discover beautiful graphs and epoke_making insights.