我如何在highcharts中填充MAX MIN子弹?

Cod*_*end 0 html javascript css jquery highcharts

我想填写高图的子弹,就像高阶图栏一样.如果有人知道highcharts,请帮助我.这是我正在使用的高级功能.我想将第一种颜色作为第一种颜色作为第二种颜色作为第二种颜色.如果您知道任何解决方案,请告诉我.谢谢

var chart = new Highcharts.Chart({
            chart: {
                renderTo:'DimensionsChartfirst',
                type:'column'
            },
            colors: ['#0070C0', '#C00000'],
           title: {
                text: 'Office data'
            },
            subtitle: {
                text: ''
            },
            credits:{enabled:false},
            legend:{
            },
            plotOptions: {
                series: {
                    shadow:false,
                    borderWidth:0
                }
            },
            xAxis:{
            categories: [
                    'Weight',
                    'Height'
                ],
                lineColor:'#999',
                lineWidth:1,
                tickColor:'#666',
                tickLength:3,
                title:{
                    text:'Part Counts'
                }
            },
            yAxis:{
                lineColor:'#999',
                lineWidth:1,
                tickColor:'#666',
                tickWidth:1,
                tickLength:3,
                gridLineColor:'#ddd',
                title:{
                    text:'Office data',
                   // rotation:90,
                    margin:10
                }
            },    
            series: [{
                        name: 'MAX',
                data: MaxVal,
                colors: ['#0070C0'],
                type: 'column',
                colorByPoint: true
            },{
                        name: 'MIN',
                data: MinVal,
                colors: ['#C00000'],
                type: 'column',
            colorByPoint: true
            }]

        });
Run Code Online (Sandbox Code Playgroud)

我如何在highcharts中填充这些MAX MIN子弹

raf*_*seb 5

您只需要删除colorByPoint: true系列中的属性.

jsFiddle:https://jsfiddle.net/4zu28aqk/

API参考:https://api.highcharts.com/highcharts/series.column.colorByPoint