$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1470009600000,0.070423],[1470096000000,0.070388],[1470182400000,0.070181],[1470268800000,0.0701],[1470355200000,0.070468],[1470441600000,0.071082],[1470528000000,0.071082],[1470614400000,0.071082],[1470700800000,0.071249],[1470787200000,0.071752],[1470873600000,0.071637],[1470960000000,0.071578],[1471046400000,0.072706],[1471132800000,0.072706],[1471219200000,0.072706],[1471305600000,0.073139],[1471392000000,0.072904],[1471478400000,0.073531],[1471564800000,0.074012],[1471651200000,0.074628],[1471737600000,0.074628],[1471824000000,0.074628],[1471910400000,0.074645],[1471996800000,0.07421],[1472083200000,0.07421],[1472169600000,0.074607],[1472256000000,0.075111],[1472342400000,0.075111],[1472428800000,0.075111],[1472515200000,0.075192],[1472601600000,0.075675]], 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, 0.070423],[1470009600000, 0.070423],[1470096000000, 0.070388],[1470182400000, 0.070181],[1470268800000, 0.070100],[1470355200000, 0.070468],[1470441600000, 0.071082],[1470528000000, 0.071082],[1470614400000, 0.071082],[1470700800000, 0.071249],[1470787200000, 0.071752],[1470873600000, 0.071637],[1470960000000, 0.071578],[1471046400000, 0.072706],[1471132800000, 0.072706],[1471219200000, 0.072706],[1471305600000, 0.073139],[1471392000000, 0.072904],[1471478400000, 0.073531],[1471564800000, 0.074012],[1471651200000, 0.074628],[1471737600000, 0.074628],[1471824000000, 0.074628],[1471910400000, 0.074645],[1471996800000, 0.074210],[1472083200000, 0.074210],[1472169600000, 0.074607],[1472256000000, 0.075111],[1472342400000, 0.075111],[1472428800000, 0.075111],[1472515200000, 0.075192],[1472601600000, 0.075675]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });