graph » options » contextMenu

context-menu, contextMenu

[ root » graph » options » contextMenu]

Mobile Charts Plugin users only: Use the contextMenu object to customize the mobile context menu. You can change the color of the context menu buttons, remove individual menu items, and/or change the color of the menu item font. Refer to the Mobile Charts Tutorial for more information.

options: {
  contextMenu: { //Mobile Context Menu
    visible: true,
    button: {
      open: {
        lineColor: 'gray'
      },
      close: {
        lineColor: 'white'
      }
    },
    items: {
      image: true, //Save Image
      share: true, //Share Image
      lock: true, //Lock/Unlock Scrolling
      share: {
        email: true,
        facebook: true,
        twitter: true,
        linkedin: true
      },
      fontColor: 'white'
    }
  },
  ...
}