Skip to main content
Participant
Nov 15, 2016 8:13 PM UTC
Question

ColdFusion 11 cfchart disable right click functionality

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Jackie Daytona
    Participant
    Dec 13, 2016 11:39 AM UTC

    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.

    Translate