daemth/easychart

Error when adding a Drupal Preset

Opened this issue · 0 comments

Hi,

Not sure if this issue should be added here or in the Drupal issue queue.

I've been trying to change the default credit text and link in the easychart admin interface: /admin/config/media/easychart/presets

I'm adding this as text : "credits":{"text":"EXAMPLE.COM","href":"http://example.com"}

When I save this as a preset and then got to view the charts they no longer appear and I receive this error:

Uncaught SyntaxError: missing ) after argument list

It seems like there's extra brackets being added to the end or something:

window.easychart.setPresets("credits":{"text":"EXAMPLE.COM","href":"http://example.com"**});**})

Maybe I'm not formatting the credit options properly?

I'm using easychart version 3.1.4.

Let me know if any other information is needed.

Thanks!

https://www.drupal.org/node/2841105