$(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: [[1067644800000,5.3318],[1067731200000,5.3318],[1067817600000,5.3318],[1067904000000,5.3319],[1067990400000,5.3318],[1068076800000,5.332],[1068163200000,5.332],[1068249600000,5.332],[1068336000000,5.332],[1068422400000,5.332],[1068508800000,5.332],[1068595200000,5.332],[1068681600000,5.332],[1068768000000,5.332],[1068854400000,5.332],[1068940800000,5.332],[1069027200000,5.332],[1069113600000,5.332],[1069200000000,5.332],[1069286400000,5.332],[1069372800000,5.3319],[1069459200000,5.3319],[1069545600000,5.3319],[1069632000000,5.3319],[1069718400000,5.332],[1069804800000,5.332],[1069891200000,5.332],[1069977600000,5.332],[1070064000000,5.332],[1070150400000,5.332]], 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, 5.331800],[1067644800000, 5.331800],[1067731200000, 5.331800],[1067817600000, 5.331800],[1067904000000, 5.331900],[1067990400000, 5.331800],[1068076800000, 5.332000],[1068163200000, 5.332000],[1068249600000, 5.332000],[1068336000000, 5.332000],[1068422400000, 5.332000],[1068508800000, 5.332000],[1068595200000, 5.332000],[1068681600000, 5.332000],[1068768000000, 5.332000],[1068854400000, 5.332000],[1068940800000, 5.332000],[1069027200000, 5.332000],[1069113600000, 5.332000],[1069200000000, 5.332000],[1069286400000, 5.332000],[1069372800000, 5.331900],[1069459200000, 5.331900],[1069545600000, 5.331900],[1069632000000, 5.331900],[1069718400000, 5.332000],[1069804800000, 5.332000],[1069891200000, 5.332000],[1069977600000, 5.332000],[1070064000000, 5.332000],[1070150400000, 5.332000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });