Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
convert the data to pandas DataFrame df = pd.DataFrame(data_dict['data'], columns=data_dict['columns']) # create bar chart plt.figure(figsize=(10,6)) plt.barh(df['ProductName'], df['TotalSales'], color='blue') plt.xlabel('Total Sales') plt.ylabel('Product Name') plt.title('Total Sales by Product