$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CHF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CHF', data: [[1477958400000,25.8126],[1478044800000,null],[1478131200000,26.2885],[1478217600000,26.2521],[1478304000000,26.3335],[1478390400000,26.3335],[1478476800000,26.3335],[1478563200000,26.2177],[1478649600000,26.1799],[1478736000000,26.1044],[1478822400000,25.8962],[1478908800000,26.0412],[1478995200000,26.0412],[1479081600000,26.0412],[1479168000000,25.8424],[1479254400000,26.0287],[1479340800000,26.2574],[1479427200000,26.0049],[1479513600000,25.697],[1479600000000,25.697],[1479686400000,25.697],[1479772800000,25.5531],[1479859200000,25.3887],[1479945600000,25.28],[1480032000000,25.1611],[1480118400000,25.3794],[1480204800000,25.3794],[1480291200000,25.3794],[1480377600000,25.2705],[1480464000000,25.1803]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1477958400000, 25.812568],[1477958400000, 25.812568],[1478131200000, 26.288450],[1478217600000, 26.252077],[1478304000000, 26.333459],[1478390400000, 26.333459],[1478476800000, 26.333459],[1478563200000, 26.217682],[1478649600000, 26.179931],[1478736000000, 26.104382],[1478822400000, 25.896177],[1478908800000, 26.041173],[1478995200000, 26.041173],[1479081600000, 26.041173],[1479168000000, 25.842355],[1479254400000, 26.028687],[1479340800000, 26.257354],[1479427200000, 26.004908],[1479513600000, 25.697021],[1479600000000, 25.697021],[1479686400000, 25.697021],[1479772800000, 25.553070],[1479859200000, 25.388718],[1479945600000, 25.280024],[1480032000000, 25.161061],[1480118400000, 25.379389],[1480204800000, 25.379389],[1480291200000, 25.379389],[1480377600000, 25.270487],[1480464000000, 25.180337]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });