Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create 3D Pie? #1

Open
win32nipuh opened this issue Jul 23, 2020 · 0 comments
Open

How to create 3D Pie? #1

win32nipuh opened this issue Jul 23, 2020 · 0 comments

Comments

@win32nipuh
Copy link

win32nipuh commented Jul 23, 2020

Thank you for the sample. It is great to use Highcharts a Blazor app.
I have tried to add to your application the 2nd chart: 3DPie. I copied the code from fiddler and paste to the json string, It works and displayed the Pie but it looks not as a 3D Pie like this

https://www.highcharts.com/demo/3d-pie

I have replaced the json string with json from the link.
But 3d does not work

string chartjson = @" {
 chart: {
        type: 'pie',
        options3d: {
            enabled: true,
            alpha: 45,
            beta: 0
        }
    },
    title: {
        text: 'Browser market shares at a specific website, 2014'
    },
    accessibility: {
        point: {
            valueSuffix: '%'
        }
    },
    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
    },
    plotOptions: {
        pie: {
            allowPointSelect: true,
            cursor: 'pointer',
            depth: 35,
            dataLabels: {
                enabled: true,
                format: '{point.name}'
            }
        }
    },
    series: [{
        type: 'pie',
        name: 'Browser share',
        data: [
            ['Firefox', 45.0],
            ['IE', 26.8],
            {
                name: 'Chrome',
                y: 12.8,
                sliced: true,
                selected: true
            },
            ['Safari', 8.5],
            ['Opera', 6.2],
            ['Others', 0.7]
        ]
    }]
}";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant