Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ColdFusion 11 cfchart disable right click functionality

New Here ,
Nov 15, 2016 Nov 15, 2016

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

452
Translate
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
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.

Translate
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
Resources