Click here to Skip to main content
15,906,569 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
$(function () {
    $('#container').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: 'Browser market shares at a specific website, 2014'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true,
                    format: '<b>{point.name}</b>: {point.percentage:.1f} %',
                    style: {
                        color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                    }
                }
            }
        },
        series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['Firefox',   45.0 how to send these parameters from code behind],
                ['IE',       26.8 how to send these parameters from code behind],
                {
                    name: 'Chrome',
                    y: 12.8 how to send these parameters from code behind,
                    sliced: true,
                    selected: true
                },
                ['Safari',    8.5 how to send these parameters from code behind],
                ['Opera',     6.2 how to send these parameters from code behind],
                ['Others',   0.7 how to send these parameters from code behind]
            ]
        }]
    });
});

Firefox,45.0 how to send these parameters from code behind
Posted

1 solution

Try this:
C#
Page.ClientScript.RegisterStartupScript(typeof(Page), "myscript", sscript.ToString(), true);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900