$(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: [[1067644800000,0.17805],[1067731200000,0.17805],[1067817600000,0.17805],[1067904000000,0.17806],[1067990400000,0.17856],[1068076800000,0.17886],[1068163200000,0.17886],[1068249600000,0.17886],[1068336000000,0.17886],[1068422400000,0.17886],[1068508800000,0.17886],[1068595200000,0.1789],[1068681600000,0.17886],[1068768000000,0.17857],[1068854400000,0.17881],[1068940800000,0.17881],[1069027200000,0.17881],[1069113600000,0.17894],[1069200000000,0.17892],[1069286400000,0.17895],[1069372800000,0.17894],[1069459200000,0.17894],[1069545600000,0.17894],[1069632000000,0.17894],[1069718400000,0.17931],[1069804800000,0.17931],[1069891200000,0.17931],[1069977600000,0.17929],[1070064000000,0.17929],[1070150400000,0.17929]], 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: [[1067644800000, 0.178050],[1067644800000, 0.178050],[1067731200000, 0.178050],[1067817600000, 0.178050],[1067904000000, 0.178060],[1067990400000, 0.178560],[1068076800000, 0.178860],[1068163200000, 0.178860],[1068249600000, 0.178860],[1068336000000, 0.178860],[1068422400000, 0.178860],[1068508800000, 0.178860],[1068595200000, 0.178900],[1068681600000, 0.178860],[1068768000000, 0.178570],[1068854400000, 0.178810],[1068940800000, 0.178810],[1069027200000, 0.178810],[1069113600000, 0.178940],[1069200000000, 0.178920],[1069286400000, 0.178950],[1069372800000, 0.178940],[1069459200000, 0.178940],[1069545600000, 0.178940],[1069632000000, 0.178940],[1069718400000, 0.179310],[1069804800000, 0.179310],[1069891200000, 0.179310],[1069977600000, 0.179290],[1070064000000, 0.179290],[1070150400000, 0.179290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });