最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How replicate the value of Y Axis on both sides of the axis in Highcharts - Stack Overflow

programmeradmin0浏览0评论

I need only replicate the value of Y axes on both sides os the axis. Note that my chart DOES NOT have multiple axes.

Look the example: [.7.2/highslide-software/highcharts/tree/master/samples/highcharts/demo/bar-basic/]

I know it's something simple, but I could not find the solution.

Please guide me. Thanks in advance.

I need only replicate the value of Y axes on both sides os the axis. Note that my chart DOES NOT have multiple axes.

Look the example: [http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/bar-basic/]

I know it's something simple, but I could not find the solution.

Please guide me. Thanks in advance.

Share Improve this question asked Apr 2, 2013 at 13:49 PradoCompPradoComp 1971 gold badge2 silver badges6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 19

You still need to specify multiple axes, and then you can use the 'linkedTo' and 'opposite' properties:

 yAxis: [{
                min: 0,
                title: {
                    text: 'Population (millions)',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },{
                linkedTo:0,
                opposite:true
            }],

.

Edit for clarification based on comment below:

Highstock, at the time of this writing, sets the opposite property as true for the yAxis by default.

However, Highstock is not a "version of Highcharts". Highstock is its own product, originating from and related to Highcharts.

All versions of Highcharts currently set opposite to false both axes by default - yAxis will be on the left, and xAxis will be on the bottom.

发布评论

评论列表(0)

  1. 暂无评论