• Resolved louislouis8880

    (@louislouis8880)


    Hello Meitar,

    Thank you for this plugin.

    I am wondering if its possible for me to use some kind of hook in order to add
    custom attributes for the chart options. Lets say for example that I want to add the attribute ‘chart_happy’ to the list of attributes already defined in the plugin.

    The way I have done it now is by ( wrongly ) adding it to the list of attributes in the plugin but this will of course not work when the plugin gets updated.

    Iḿ successfully using a hook that reads my customized igsv-gvizcharts.js-file but I cant seem to find a way to add my custom attributes to the inline-gdocs-viewer.php-file.

    Thank you/
    Louis

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

    (@meitar)

    There is no facility for adding custom attributes right now and I’m not sure there should be. You can use custom CSS classes that your own JavaScript can interpret however you like, and you can also use PHP output buffering to capture the output of the shortcode and rewrite it for the client as you wish. I’m not certain what you are trying to accomplish but these techniques would be how I’d begin to approach customizations that required different HTML output or display.

    • This reply was modified 9 years, 4 months ago by Meitar.
Viewing 1 replies (of 1 total)

The topic ‘Custom attributes for charts’ is closed to new replies.