Skip to main content
Participant
November 15, 2016
Question

ColdFusion 11 cfchart disable right click functionality

  • November 15, 2016
  • 1 reply
  • 524 views

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

    This topic has been closed for replies.

    1 reply

    Jackie Daytona
    Participant
    December 13, 2016

    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.