nithinmurali / pygsheets

Google Sheets Python API v4
https://pygsheets.readthedocs.io/en/latest
Other
1.51k stars 220 forks source link

Cant provide axis while creating a chart #529

Closed aadhikar closed 2 years ago

aadhikar commented 2 years ago

Hi folks, I am trying to create a chart in which I can specify the x-axis, so far I got: wks.add_chart(('G1', 'G1'), [('B2','B4'), ('C2','C4'), ('D2','D4'), ('E2','E4')], 'TestChart', ChartType.LINE) Is there any way I can do that?

nithinmurali commented 2 years ago

Hi, The domain is the x-axis (the first param). But here you have given both as G1, so its essentialy one point. suppose you want your x values from G1 to G10, then pass the first param as ('G1', 'G10').

I have updated the docs.

aadhikar commented 2 years ago

Thanks for your valuable comments!