$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1488326400000,27.1637],[1488412800000,27.1806],[1488499200000,27.0913],[1488585600000,27.1192],[1488672000000,27.1192],[1488758400000,27.1192],[1488844800000,27.0213],[1488931200000,26.9595],[1489017600000,26.9595],[1489104000000,26.9086],[1489190400000,26.8102],[1489276800000,26.8102],[1489363200000,26.8102],[1489449600000,26.8946],[1489536000000,26.9043],[1489622400000,26.8808],[1489708800000,26.979],[1489795200000,26.9093],[1489881600000,26.9093],[1489968000000,26.9093],[1490054400000,26.8879],[1490140800000,26.8511],[1490227200000,26.9199],[1490313600000,27.0577],[1490400000000,27.1246],[1490486400000,27.1246],[1490572800000,27.1246],[1490659200000,27.1535],[1490745600000,27.1207],[1490832000000,27.0401],[1490918400000,26.9761]], 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: [[1488326400000, 27.163714],[1488326400000, 27.163714],[1488412800000, 27.180639],[1488499200000, 27.091316],[1488585600000, 27.119249],[1488672000000, 27.119249],[1488758400000, 27.119249],[1488844800000, 27.021320],[1488931200000, 26.959467],[1489017600000, 26.959467],[1489104000000, 26.908632],[1489190400000, 26.810151],[1489276800000, 26.810151],[1489363200000, 26.810151],[1489449600000, 26.894568],[1489536000000, 26.904296],[1489622400000, 26.880768],[1489708800000, 26.979001],[1489795200000, 26.909264],[1489881600000, 26.909264],[1489968000000, 26.909264],[1490054400000, 26.887865],[1490140800000, 26.851060],[1490227200000, 26.919904],[1490313600000, 27.057689],[1490400000000, 27.124559],[1490486400000, 27.124559],[1490572800000, 27.124559],[1490659200000, 27.153547],[1490745600000, 27.120665],[1490832000000, 27.040107],[1490918400000, 26.976058]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });