add image in chart If no data available - Javascript highcharts

Javascript examples for highcharts:Chart Data

Description

add image in chart If no data available

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto;"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
    chart: {/*w  w w.  j a v  a2s .c  om*/
        type: 'bubble',
        plotBorderWidth: 1,
        zoomType: 'xy'
    },
    title: {
        text: 'No Date Availavle'
    }
}).renderer.image('https://www.highcharts.com/samples/graphics/sun.png', 100, 100, 30, 30)
    .add();

      </script>  
   </body>
</html>

Related Tutorials