ColdFusion 11 cfchart disable right click functionality

New Here ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

After creating some charts using the built in cfchart tags, I've been told that the ability to right click is not 508 compliant. Looking at the zingchart website, I have been able to work out most of the JSON, and I can see that to disable it you would use the following

"gui":{

    "context-menu":{

        "visible":"false"

    }

},

My issue is that I don't know how to add this to the cfchart tag to get it to work.

Thanks

Views

306

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2016 Dec 13, 2016

Copy link to clipboard

Copied

LATEST

I needed to remove some menu items so was looking for a similar answer. I couldn't see any way of getting the GUI object in using the standard tag attributes so I used an external JSON file instead:

<cfchart format="html" style="filename.json">

and then added this in the JSON file:

{

"gui":{

    "behaviors":[

      {

        "id":"ViewAll",

        "enabled":"none"

      },

...

    ]

  },

"graphset":[

    {

        "type":"line",

...

Worked a treat.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines