Support » Plugin: Inline Google Spreadsheet Viewer » Chart not showing i.c.w. WordPress. Datatables are shown instead

  • Resolved joostmulder

    (@joostmulder)


    Hi,

    I’m trying to plot a linechart, but the Char function does not seem to work in combination with a WordPress database query.

    This is what i use:
    [gdoc key=”wordpress” chart=”Line” query=”SELECT datum, waarde FROM wpix_fa_data”]

    But the output generates a datatable and not a chart. If I use a Google spreadsheet as source, it does generate a Line-chart.

    Any ideas on how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Meitar

    (@meitar)

    the Char function does not seem to work in combination with a WordPress database query.

    Charts are supported from Google Sheet or CSV datasources only, as is stated by the first sentence after the “Charts” headline in the plugin’s readme, reprinted here for your convenience:

    Data from Google Spreadsheets or CSV files can be graphed in interactive charts.

    joostmulder

    (@joostmulder)

    Thanks, I’ve found some more info here:

    https://developers.google.com/chart/interactive/docs/php_example

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.