$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1028160000000,0.16905],[1028246400000,0.16891],[1028332800000,0.16891],[1028419200000,0.16891],[1028505600000,0.16896],[1028592000000,0.169],[1028678400000,0.169],[1028764800000,0.16888],[1028851200000,0.16873],[1028937600000,0.16873],[1029024000000,0.16873],[1029110400000,0.16885],[1029196800000,0.16885],[1029283200000,0.16896],[1029369600000,0.16885],[1029456000000,0.16882],[1029542400000,0.16882],[1029628800000,0.16882],[1029715200000,0.16888],[1029801600000,0.16888],[1029888000000,0.16879],[1029974400000,0.16879],[1030060800000,0.1688],[1030147200000,0.1688],[1030233600000,0.1688],[1030320000000,0.1688],[1030406400000,0.1688],[1030492800000,0.16877],[1030579200000,0.16877],[1030665600000,0.16882],[1030752000000,0.16882]], 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: [[1028160000000, 0.169050],[1028160000000, 0.169050],[1028246400000, 0.168910],[1028332800000, 0.168910],[1028419200000, 0.168910],[1028505600000, 0.168960],[1028592000000, 0.169000],[1028678400000, 0.169000],[1028764800000, 0.168880],[1028851200000, 0.168730],[1028937600000, 0.168730],[1029024000000, 0.168730],[1029110400000, 0.168850],[1029196800000, 0.168850],[1029283200000, 0.168960],[1029369600000, 0.168850],[1029456000000, 0.168820],[1029542400000, 0.168820],[1029628800000, 0.168820],[1029715200000, 0.168880],[1029801600000, 0.168880],[1029888000000, 0.168790],[1029974400000, 0.168790],[1030060800000, 0.168800],[1030147200000, 0.168800],[1030233600000, 0.168800],[1030320000000, 0.168800],[1030406400000, 0.168800],[1030492800000, 0.168770],[1030579200000, 0.168770],[1030665600000, 0.168820],[1030752000000, 0.168820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });