XD-DENG / ECharts2Shiny

To insert interactive charts from ECharts into R Shiny applications (在R Shiny app中插入ECharts可交互图形)
https://CRAN.R-project.org/package=ECharts2Shiny
GNU General Public License v2.0
130 stars 47 forks source link

Add Radar Chart #8

Closed XD-DENG closed 8 years ago

XD-DENG commented 8 years ago
option = {
    tooltip: {},

    legend: {
        data: ['Type A', 'Type B', "Type C"]
    },
    radar: {

        // shape: 'circle',

        indicator: [
           { name: 'A', max: 6500},
           { name: 'B', max: 16000},
           { name: 'C', max: 30000},
           { name: 'D', max: 38000},
           { name: 'E', max: 52000}
        ]
    },
    series: [{
        type: 'radar',

        // areaStyle: {normal: {}},
         itemStyle: {
                    normal: {
                        lineStyle: {
                          width:3
                        }
                    },
                    emphasis : {
                        areaStyle: {color:'rgba(0,250,0,0.3)'}
                    }
                },

        data : [
            {
                value : [4300, 10000, 25000, 35000, 50000],
                name : 'Type A'
            },
             {
                value : [5000, 14000, 28000, 31000, 42000],
                name : 'Type B'
            },
                        {
                value : [4000, 2000, 9000, 29000, 35000],
                name : 'Type C'
            },
        ]
    }]
};
XD-DENG commented 8 years ago

addressed with commit b5ec5ad9d5f8f9c0d0b041f49fe844759a5e7c09