$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1470009600000,34.565],[1470096000000,34.6209],[1470182400000,34.7335],[1470268800000,34.7777],[1470355200000,34.6772],[1470441600000,34.66],[1470528000000,34.66],[1470614400000,34.66],[1470700800000,34.5501],[1470787200000,34.5322],[1470873600000,34.6723],[1470960000000,34.6675],[1471046400000,34.9173],[1471132800000,34.9173],[1471219200000,34.9173],[1471305600000,35.05],[1471392000000,35.1358],[1471478400000,35.1543],[1471564800000,35.379],[1471651200000,35.5043],[1471737600000,35.5043],[1471824000000,35.5043],[1471910400000,35.4943],[1471996800000,35.5914],[1472083200000,35.5914],[1472169600000,35.5775],[1472256000000,35.7346],[1472342400000,35.7346],[1472428800000,35.7346],[1472515200000,35.7997],[1472601600000,35.8064]], 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: [[1470009600000, 34.564957],[1470009600000, 34.564957],[1470096000000, 34.620873],[1470182400000, 34.733517],[1470268800000, 34.777745],[1470355200000, 34.677154],[1470441600000, 34.659958],[1470528000000, 34.659958],[1470614400000, 34.659958],[1470700800000, 34.550082],[1470787200000, 34.532159],[1470873600000, 34.672342],[1470960000000, 34.667475],[1471046400000, 34.917262],[1471132800000, 34.917262],[1471219200000, 34.917262],[1471305600000, 35.050040],[1471392000000, 35.135819],[1471478400000, 35.154330],[1471564800000, 35.378986],[1471651200000, 35.504342],[1471737600000, 35.504342],[1471824000000, 35.504342],[1471910400000, 35.494274],[1471996800000, 35.591363],[1472083200000, 35.591363],[1472169600000, 35.577488],[1472256000000, 35.734601],[1472342400000, 35.734601],[1472428800000, 35.734601],[1472515200000, 35.799672],[1472601600000, 35.806449]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });