1
votes

I'm wanting to show the values in my chart series outside the chart container in a label. I have the values inside a tooltip, how can I show these values outside the chart in another container on a label? fiddle.

How can I show the series values in a label outside the chart on mouse over?

       mouseOver: function () {
                    console.log(chart.series)
                }, 

Thanks in advance.

1

1 Answers

2
votes

js:

//add this
    tooltip: {

                formatter:function(){
                          $('#tooltip').html(this.y);
                          return this.y;
                }
            },

html:

<div id="container" style="width: 600px; height: 350px; margin: 0 auto"></div>


<div id="tooltip"></div>

here's the fiddle

hope it helps