Dotnet highchart visible attribute

102 views Asked by At

I am using dotnet highchart in my project, I want to use the visible attribute of point like the following:

series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['Firefox',   45.0],
                ['IE',       26.8],
                {
                    name: 'Chrome',
                    y: 12.8,
                    visible: false
                },
                ['Safari',    8.5],
                ['Opera',     6.2],
                ['Others',   0.7]
            ]
        }]

but I did not find this attribute in dotnet highchart, so how can I do it?

1

There are 1 answers

1
Sreejith On

Please refer the link below. I think it will help you to some extent.

This hides unwanted series values.

JSFiddle

$(function () {
    $('#container').highcharts({
        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
            visible:false 
        }, {
            data: [129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4]
        }]
    });
});