rgraph supports retrieving data from Google sheets via setting parameter data="sheets" and "sheets_parm". With "sheets_parm you must provide a key of the spreadsheet created at google sheets and published to the web. As a second parameter you may specify the number of rows to retrieve (if not specified all rows will be retrieved). If the third parameter is set to true, then first row's data will be used as keys for the columns. If parameter "sheets_cols" is set, only selected colums defined there are processed for chart's data.

Parameter for creation of chart

{rgraph title="Data from Google Sheets" width="550" height="300" grouping="stacked" 
key="Fred,Lucy,Lilly" tooltip="#key#: #val# <br>Total #total# in #label#" keyPositionX="200" marginBottom="80"
data="sheets" sheets_parm="1ncvARBgXaDjzuca9i7Jyep6JTv9kms-bbIzyAxbaT0E,12" sheets_cols="Fred,Lucy,Lilly"
variant="3d" xaxisLabelsAngle="20" tooltipsEvent="onmousemove" keyPositionY="60" textAngle="20"}sheets{/rgraph}   

 

[No canvas support]>

 

Important: If you want to test this sample via copy/paste, ensure that you paste with option "paste as plain text" otherwise imbedded html-codes may invalidate your input.
go back...

Visitors

Today: 18
Yesterday: 70
This Week: 237
Last Week: 590
This Month: 1,360
Last Month: 2,235
This Year: 6,725
Total: 239,318
0239318
Germany 30.9% Germany
USA 22.8% USA
France 3.3% France
Italy 2.7% Italy
Indonesia 2.1% Indonesia
Poland 2.0% Poland
Netherlands 1.8% Netherlands

Total:

209

Countries

Weather

Weather in Dublin

19th April, 2024 - 9:56
Overcast Clouds
56°F 53°F min 61°F max
6:47 20:14
Humidity: 90 %
Wind: 13.8 mph West
Pressure: 1,018 hPa
Visibility: 32,808 ft
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.