$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1527811200000,34.8546],[1527897600000,34.7541],[1527984000000,34.7541],[1528070400000,34.7541],[1528156800000,34.9847],[1528243200000,34.9438],[1528329600000,35.1038],[1528416000000,35.1518],[1528502400000,35.0162],[1528588800000,35.0162],[1528675200000,35.0162],[1528761600000,34.8851],[1528848000000,34.876],[1528934400000,34.8402],[1529020800000,35.076],[1529107200000,34.9468],[1529193600000,34.9468],[1529280000000,34.9468],[1529366400000,34.882],[1529452800000,34.7842],[1529539200000,null],[1529625600000,34.7386],[1529712000000,34.8643],[1529798400000,34.8643],[1529884800000,34.8643],[1529971200000,34.7832],[1530057600000,34.6733],[1530144000000,34.6841],[1530230400000,34.6841],[1530316800000,34.6841]], 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: [[1527811200000, 34.854574],[1527811200000, 34.854574],[1527897600000, 34.754062],[1527984000000, 34.754062],[1528070400000, 34.754062],[1528156800000, 34.984722],[1528243200000, 34.943787],[1528329600000, 35.103753],[1528416000000, 35.151776],[1528502400000, 35.016178],[1528588800000, 35.016178],[1528675200000, 35.016178],[1528761600000, 34.885076],[1528848000000, 34.876023],[1528934400000, 34.840178],[1529020800000, 35.075992],[1529107200000, 34.946752],[1529193600000, 34.946752],[1529280000000, 34.946752],[1529366400000, 34.882041],[1529452800000, 34.784216],[1529625600000, 34.738618],[1529712000000, 34.864278],[1529798400000, 34.864278],[1529884800000, 34.864278],[1529971200000, 34.783214],[1530057600000, 34.673320],[1530144000000, 34.684106],[1530230400000, 34.684106],[1530316800000, 34.684106]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });