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: 37
Yesterday: 116
This Week: 153
Last Week: 352
This Month: 1,628
Last Month: 2,235
This Year: 6,993
Total: 239,586
0239586
Germany 30.9% 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 Franklin

23rd April, 2024 - 15:28
Overcast Clouds
65°F 63°F min 66°F max
6:41 20:18
Humidity: 41 %
Wind: 19.6 mph South-West
Pressure: 1,017 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.