A 3d Bar with Data from Google Sheets

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...