Apples stock app graph

by Swapnil Khamkar

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container" style="border-radius: 20px; width: 100px; height: 100px; margin: 0 auto"></div>

JavaScript

$(function () {
    $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function (data1) {
    
    var data = [];
    for ( var a = 3; a < data1.length; a++ ) {
    	data.push(data1[a]);
      if ( a == 8 ) {
      	break;
      }
    }

        $('#container').highcharts({
            chart: {
            		spacingBottom: -10,
                spacingTop: 0,
                spacingLeft: 0,
                spacingRight: 0,
                borderRadius: 5,
                backgroundColor: {
                  linearGradient: [0, 0, 500, 500],
                  stops: [
                      [0, 'rgb(3, 3, 3)'],
                      [1, 'rgb(3, 3, 3)']
                  ]
              }
            },
            title: {
                text: ''
            },
            xAxis: {
                labels: {enabled: false},
                minorGridLineWidth: 1,
                gridLineWidth: 1,
                tickPixelInterval: 3
            },
            yAxis: {
                labels: {enabled: false},
                gridLineWidth: 0,
                 minorGridLineWidth: 0,
                 title: {
                  text: ''
                 }
            },
            tooltip: {
            	formatter: function() {
              	return this.series.dataMin;
        			}
            },
            legend: {
                enabled: false
            },
            plotOptions: {
                area: {
                    fillColor: {
                        linearGradient: {
                            x1: 0,
                            y1: 0,
                            x2: 0,
                            y2: 1.5
                        },
                        stops: [
                            [0, '#777777'],
                            [1, '#000000']
                        ]
                    },
                    marker: {
                        radius: 2
                    },
                   ...