0



$.getJSON('https://cdn.rawgit.com/highcharts/highcharts/057b672172ccc6c08fe7dbb27fc17ebca3f5b770/samples/data/usdeur.json', function (data) {

  var year = new Date(data[data.length - 1][0]).getFullYear(); // Get year of last data point

  // Create the chart
  Highcharts.stockChart('container', {


    rangeSelector: {
      selected: 4
    },

    title: {
      text: 'USD to EUR exchange rate'
    },

    yAxis: {
      title: {
        text: 'Exchange rate'
      }
    },

    series: [{
      name: 'USD to EUR',
      data: data,
      id: 'dataseries',
      tooltip: {
        valueDecimals: 4
      }
    },{
      type: 'flags',
      data: [{
        x: Date.UTC(year, 11, 1),
        title: 'B',
        text: 'make me clickable'
      }, {
        x: Date.UTC(year, 11, 1),
        title: 'B',
        text: '<a>make me clickable</a>'
      }],
      shape: 'circlepin',
      onSeries: 'dataseries',
      width: 16,
      tooltip: {                          
                          pointFormat: '<a href="#">{point.text}</a>'
                      }       ,
      style:{
        border:'1px solid green'
      }
    }]
  });
});


|

    1

    0

        tooltip: {
            useHTML: true,
            hideDelay: 5000
        }
    

    |