Highcharts Checkbox

Highcharts Checkbox

  

I'm tying to add checkboxes to a chart, like this: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-showcheckbox-true/

I added this json bellow, but it is not working. 

plotOptions : {
        series : {
            showCheckbox : true
      }
    },

Hi Margarida,

How did you add the JSON?

HI Margarida Morais,

There is a Charts_HowTo explanation about how to use JSON options: 

https://www.outsystems.com/forge/component/713/charts-howto/

Kilian Hekhuis wrote:

Hi Margarida,

How did you add the JSON?

Hi Kilian, 


The problem is that the checkbox is not appearing. 


"chart: {
        zoomType: 'xy',
        marginBottom: 20
 },
title: {
        text: 'Items per Item Type',
         style: {
                fontStyle: 'bold',
                fontSize: '20px'
        }
 },
  yAxis: {
        title: {
            text: 'Number of Items',
             style: {
                fontSize: '14px'
            }
        }
  },

  legend: {
        title: {
            text: 'Item Types',
            style: {
                fontSize: '14px'
            }
        },
        align: 'right',
        verticalAlign: 'top',
        layout: 'vertical',
        x: 0,
        y: 100
    },

 plotOptions: {
      series: {
        showCheckbox: true
      }
}"


Marco Arede wrote:

HI Margarida Morais,

There is a Charts_HowTo explanation about how to use JSON options: 

https://www.outsystems.com/forge/component/713/charts-howto/

Marco, 

I've formated a few charts... usually with the highcharts api i've no problem writing the code.

Also, I can't find the option to add checkboxes to the legend in the link that you sended. Can you show me where is that option?

Thank you

Hi Margarida,

I did a simple test with AdvancedFormat.HighchartsJSON assign with :

SyntaxEditor Code Snippet

"        plotOptions: {
    series: {
            showCheckbox: true
    }}"

And it worked. So it must be something else that you are doing. Can you share a module with us so we can check?

Regards,

Marcelo