Highcharts - 如何在区域堆积图表中改变世界地区风格

时间:2017-01-25 13:39:32

标签: highcharts

我正在尝试这张图表: enter image description here

我如何设计世界区域的样式以便所有区域都出现?在前视图中,它们以直线显示,但最终视图显示在3列中。并非所有视图都显示。 TIA!

//Grafica 1
$(function () {
    Highcharts.chart('grafica1', {
        chart: {
            type: 'area',
        },
        title: {
            text: ' '
        },
        xAxis: {
            categories: ['1350', '1400', '1450', '1500', '1550', '1699', '1750'],
            tickmarkPlacement: 'on',
            title: {
                enabled: false
            }
        },
        yAxis: {
            title: {
                text: 'Percent'
            }
        },
        tooltip: {
            pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.percentage:.1f}%</b> ({point.y:,.0f} millions)<br/>',
            split: true
        },
        plotOptions: {
            area: {
                stacking: 'percent',
                lineColor: '#ffffff',
                lineWidth: 1,
                marker: {
                    lineWidth: 1,
                    lineColor: '#ffffff'
                }
            }
        },
           series: [{
            name: 'Africa',
            data: [502, 635, 809, 947, 1402, 3634, 5268]
        }, {
            name: 'L. America',
            data: [106, 107, 111, 133, 221, 767, 1766]
        }, {
            name: 'Oceania',
            data: [163, 203, 276, 408, 547, 729, 628]
        }, {
            name: 'S-E. Asia',
            data: [18, 31, 54, 156, 339, 818, 1201]
        }, {
            name: 'Japan',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'China',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'Near East',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'Asian CIS',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'Russia',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'East Europe',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'Central Europe',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'W. Europe - Nordic',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'Nordic',
            data: [2, 2, 2, 6, 13, 30, 46]
        }, {
            name: 'N. America',
            data: [2, 2, 2, 6, 13, 30, 46]
        }]
    });
});

0 个答案:

没有答案