Support » Plugin: Inline Google Spreadsheet Viewer » Line Chart – Axis Titles

  • Resolved markthompsonastronomy

    (@markthompsonastronomy)


    Hi, I have setup the plugin to read a CSV file stored locally on my server. I am ripping my hair out trying to work out how to display titles on the axis of the line graph.. The code is currently
    [gdoc key=”https://www.markthompsonastronomy.com/eeg/full_data_last_5mins.csv” chart=”Line” title=”” chart_height=”400″]
    (I have taken out any of the failed attempts) I have check through previous questions and checked the docs but cannot find a solution that works. Please help and I will be forever grateful 🙂

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    From Google Chart’s documentation:

    hAxis – An object with members to configure various horizontal axis elements. […]

    From this plugin’s FAQ:

    Some configuration options call for an Object value. For these, the shortcode attribute value should be a JSON object.

    Here’s Google’s example hAxis object value code:

    {
      title: 'Hello',
      titleTextStyle: {
        color: '#FF0000'
      }
    }

    And here’s the equivalent shortcode attribute:

    chart_h_axis='{ "title": "Hello", "titleTextStyle": { "color": "#FF0000" } }'
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.