$(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: [[1067644800000,9.02902],[1067731200000,9.02902],[1067817600000,9.02902],[1067904000000,9.03845],[1067990400000,8.93934],[1068076800000,8.93793],[1068163200000,8.8652],[1068249600000,8.8652],[1068336000000,8.8652],[1068422400000,8.8652],[1068508800000,8.91747],[1068595200000,8.8895],[1068681600000,8.92514],[1068768000000,8.97633],[1068854400000,9.00014],[1068940800000,9.00014],[1069027200000,9.00014],[1069113600000,9.01164],[1069200000000,9.00944],[1069286400000,9.04488],[1069372800000,9.08553],[1069459200000,9.08553],[1069545600000,9.08553],[1069632000000,9.08553],[1069718400000,9.03786],[1069804800000,9.03786],[1069891200000,9.05093],[1069977600000,9.17401],[1070064000000,9.17401],[1070150400000,9.17401]], 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, 9.029020],[1067644800000, 9.029020],[1067731200000, 9.029020],[1067817600000, 9.029020],[1067904000000, 9.038450],[1067990400000, 8.939340],[1068076800000, 8.937930],[1068163200000, 8.865200],[1068249600000, 8.865200],[1068336000000, 8.865200],[1068422400000, 8.865200],[1068508800000, 8.917470],[1068595200000, 8.889500],[1068681600000, 8.925140],[1068768000000, 8.976330],[1068854400000, 9.000140],[1068940800000, 9.000140],[1069027200000, 9.000140],[1069113600000, 9.011640],[1069200000000, 9.009440],[1069286400000, 9.044880],[1069372800000, 9.085530],[1069459200000, 9.085530],[1069545600000, 9.085530],[1069632000000, 9.085530],[1069718400000, 9.037860],[1069804800000, 9.037860],[1069891200000, 9.050930],[1069977600000, 9.174010],[1070064000000, 9.174010],[1070150400000, 9.174010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });