$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1470009600000,25.4712],[1470096000000,25.6022],[1470182400000,25.7027],[1470268800000,25.6283],[1470355200000,25.5006],[1470441600000,25.5005],[1470528000000,25.5005],[1470614400000,25.5005],[1470700800000,25.2849],[1470787200000,25.2259],[1470873600000,25.4096],[1470960000000,25.5232],[1471046400000,25.6652],[1471132800000,25.6652],[1471219200000,25.6652],[1471305600000,25.7769],[1471392000000,26.0895],[1471478400000,26.0425],[1471564800000,26.2563],[1471651200000,26.3659],[1471737600000,26.3659],[1471824000000,26.3659],[1471910400000,26.2669],[1471996800000,26.3344],[1472083200000,26.3344],[1472169600000,26.2235],[1472256000000,26.2731],[1472342400000,26.2731],[1472428800000,26.2731],[1472515200000,26.0317],[1472601600000,26.1606]], 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, 25.471230],[1470009600000, 25.471230],[1470096000000, 25.602228],[1470182400000, 25.702665],[1470268800000, 25.628335],[1470355200000, 25.500634],[1470441600000, 25.500534],[1470528000000, 25.500534],[1470614400000, 25.500534],[1470700800000, 25.284879],[1470787200000, 25.225866],[1470873600000, 25.409571],[1470960000000, 25.523217],[1471046400000, 25.665242],[1471132800000, 25.665242],[1471219200000, 25.665242],[1471305600000, 25.776855],[1471392000000, 26.089470],[1471478400000, 26.042506],[1471564800000, 26.256323],[1471651200000, 26.365868],[1471737600000, 26.365868],[1471824000000, 26.365868],[1471910400000, 26.266936],[1471996800000, 26.334380],[1472083200000, 26.334380],[1472169600000, 26.223461],[1472256000000, 26.273137],[1472342400000, 26.273137],[1472428800000, 26.273137],[1472515200000, 26.031693],[1472601600000, 26.160554]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });