Doubt Highcharts Duplicate Label

Asked

Viewed 39 times

1

inserir a descrição da imagem aqui

As I duplicate to the left that data within the circle in red?

yAxis: [{ // Primary yAxis

                    opposite: true,

                    title: {text: metrica, x:35 },
                    labels: {align: 'right', x:35},
                    gridLineColor: '#b1b7b0',
                    gridLineWidth:2

                },
                    { // Secondary yAxis
                        opposite: false,

                        title: {text: metrica, x:-35 },
                        labels: {
                            align: 'left', 
                            x:-35,
                            formatter: function() {
                                return this.data
                            }
                        },
                        gridLineColor: '#000000',
                        gridLineWidth:2


                }]
  • @Felipe Knows how he does ?

  • 1

    I’ll take your question to open a parenthesis for a question I have. On my hightchart the y-axis on the left side is displaying different values of the y-axis on the right side. How to equal?

  • @Marianaferreira has to send his code so I can know how to insert other values in the axis?

  • I’ll send the question, it has my code: https://answall.com/questions/243912/eixos-y-diferentes-em-highcharts

1 answer

1


just put two yAxis, for example:

yAxis: [{ // Primary yAxis
        min: 10,
        tickInterval: 10,
        labels: {
            format: '{value}',
            style: {
                color: Highcharts.getOptions().colors[1]
            }
        },
        title: {
            text: '',
            style: {
                color: Highcharts.getOptions().colors[1]
            }
        },
    },{ 
            min: 10,
        tickInterval: 10,// Secondary yAxis
        title: {
            text: '',
            style: {
                color: Highcharts.getOptions().colors[1]
            }
        },
        labels: {
            format: '{value}',
            style: {
                color: Highcharts.getOptions().colors[1]
            }
        },
        opposite: true,
    }],

and this says which side:

opposite: true,

Browser other questions tagged

You are not signed in. Login or sign up in order to post.