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: 63
Yesterday: 23
This Week: 295
Last Week: 302
This Month: 185
Last Month: 1,887
This Year: 7,437
Total: 240,030
0240030
Germany 31.0% Germany
USA 22.7% USA
France 3.3% France
Italy 2.7% Italy
Indonesia 2.1% Indonesia
Poland 2.0% Poland

Total:

209

Countries

Weather

Weather in Dublin

4th May, 2024 - 10:10
Overcast Clouds
67°F 65°F min 69°F max
6:27 20:30
Humidity: 94 %
Wind: 2.0 mph North-East
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.