$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1362096000000,6.46302],[1362182400000,6.44597],[1362268800000,6.44597],[1362355200000,6.44597],[1362441600000,6.41284],[1362528000000,6.41349],[1362614400000,6.41398],[1362700800000,6.4076],[1362787200000,6.4076],[1362873600000,6.4076],[1362960000000,6.4076],[1363046400000,6.39696],[1363132800000,6.41336],[1363219200000,6.40397],[1363305600000,6.38581],[1363392000000,6.4036],[1363478400000,6.4036],[1363564800000,6.4036],[1363651200000,6.39608],[1363737600000,6.3948],[1363824000000,6.38661],[1363910400000,6.39658],[1363996800000,6.39756],[1364083200000,6.39756],[1364169600000,6.39756],[1364256000000,6.42729],[1364342400000,6.43775],[1364428800000,6.42338],[1364515200000,6.43713],[1364601600000,6.43713],[1364688000000,6.43713]], 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: [[1362096000000, 6.463023],[1362096000000, 6.463023],[1362182400000, 6.445968],[1362268800000, 6.445968],[1362355200000, 6.445968],[1362441600000, 6.412839],[1362528000000, 6.413492],[1362614400000, 6.413984],[1362700800000, 6.407599],[1362787200000, 6.407599],[1362873600000, 6.407599],[1362960000000, 6.407599],[1363046400000, 6.396960],[1363132800000, 6.413365],[1363219200000, 6.403971],[1363305600000, 6.385811],[1363392000000, 6.403600],[1363478400000, 6.403600],[1363564800000, 6.403600],[1363651200000, 6.396082],[1363737600000, 6.394795],[1363824000000, 6.386605],[1363910400000, 6.396580],[1363996800000, 6.397562],[1364083200000, 6.397562],[1364169600000, 6.397562],[1364256000000, 6.427294],[1364342400000, 6.437749],[1364428800000, 6.423378],[1364515200000, 6.437130],[1364601600000, 6.437130],[1364688000000, 6.437130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });