Skip to content

Instantly share code, notes, and snippets.

@Sid72020123
Created June 27, 2021 10:49
Show Gist options
  • Save Sid72020123/6e191d5495ea2c13a3cd011441c1d31c to your computer and use it in GitHub Desktop.
Save Sid72020123/6e191d5495ea2c13a3cd011441c1d31c to your computer and use it in GitHub Desktop.
import pyhtmlchart as chart
line_chart = chart.line_chart.LineChart(location='line', title='Chart')
columns = ['Time', 'Number1', 'Number2']
all_data = [[1, 200, 300], [2, 500, 400]]
line_chart.add_data(data=all_data, data_titles=columns)
line_chart.open()
@Sid72020123
Copy link
Author

The program to make a simple line chart.

@Sid72020123
Copy link
Author

Can anyone try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment