Setting background text in Scatter Plot - Javascript highcharts

Javascript examples for highcharts:Scatter Chart

Description

Setting background text in Scatter Plot

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head> 
      <title>Highcharts background text</title> 
   </head> 
   <body translate="no"> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container" style="height: 300px;width: 500px"></div> 
      <script>
Highcharts.chart('container', {
    xAxis: {//from   w w  w  .  j  a  v a  2  s.  c  om
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    },
    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
    }]
}, function (chart) { // on complete
    chart.renderer.text('This text is <span style="color: red; opacity:0.4">styled</span> and <a href="http://example.com">linked</a>', 10, 130)
        .css({
            color: '#4572a780',
            fontSize: '34px'
        })
        .add();
});
      //# sourceURL=pen.js
    
      </script>  
   </body>
</html>

Related Tutorials