$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1318032000000,0.2476],[1318118400000,0.2476],[1318204800000,0.2476],[1318291200000,0.24907],[1318377600000,0.25369],[1318464000000,0.25382],[1318550400000,0.25562],[1318636800000,0.25736],[1318723200000,0.25736],[1318809600000,0.25736],[1318896000000,0.25948],[1318982400000,0.25753],[1319068800000,0.2579],[1319155200000,0.25417],[1319241600000,0.25452],[1319328000000,0.25452],[1319414400000,0.25452],[1319500800000,0.25874],[1319587200000,0.26154],[1319673600000,0.26089],[1319760000000,0.26377]], 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: [[1318032000000, 0.247600],[1318032000000, 0.247600],[1318118400000, 0.247600],[1318204800000, 0.247600],[1318291200000, 0.249070],[1318377600000, 0.253690],[1318464000000, 0.253820],[1318550400000, 0.255620],[1318636800000, 0.257360],[1318723200000, 0.257360],[1318809600000, 0.257360],[1318896000000, 0.259480],[1318982400000, 0.257530],[1319068800000, 0.257900],[1319155200000, 0.254170],[1319241600000, 0.254520],[1319328000000, 0.254520],[1319414400000, 0.254520],[1319500800000, 0.258740],[1319587200000, 0.261540],[1319673600000, 0.260890],[1319760000000, 0.263770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });