$(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: [[1362096000000,8.59531],[1362182400000,8.48583],[1362268800000,8.48583],[1362355200000,8.48583],[1362441600000,8.48278],[1362528000000,8.48585],[1362614400000,8.46994],[1362700800000,8.44203],[1362787200000,8.44203],[1362873600000,8.44203],[1362960000000,8.44203],[1363046400000,8.403],[1363132800000,8.45209],[1363219200000,8.42253],[1363305600000,8.37495],[1363392000000,8.49825],[1363478400000,8.49825],[1363564800000,8.49825],[1363651200000,8.45606],[1363737600000,8.46795],[1363824000000,8.46583],[1363910400000,8.44087],[1363996800000,8.47473],[1364083200000,8.47473],[1364169600000,8.47473],[1364256000000,8.46552],[1364342400000,8.41985],[1364428800000,8.383],[1364515200000,8.39281],[1364601600000,8.39281],[1364688000000,8.39281]], 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, 8.595306],[1362096000000, 8.595306],[1362182400000, 8.485831],[1362268800000, 8.485831],[1362355200000, 8.485831],[1362441600000, 8.482780],[1362528000000, 8.485848],[1362614400000, 8.469942],[1362700800000, 8.442030],[1362787200000, 8.442030],[1362873600000, 8.442030],[1362960000000, 8.442030],[1363046400000, 8.402997],[1363132800000, 8.452092],[1363219200000, 8.422529],[1363305600000, 8.374945],[1363392000000, 8.498245],[1363478400000, 8.498245],[1363564800000, 8.498245],[1363651200000, 8.456059],[1363737600000, 8.467948],[1363824000000, 8.465831],[1363910400000, 8.440870],[1363996800000, 8.474727],[1364083200000, 8.474727],[1364169600000, 8.474727],[1364256000000, 8.465525],[1364342400000, 8.419852],[1364428800000, 8.382999],[1364515200000, 8.392814],[1364601600000, 8.392814],[1364688000000, 8.392814]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });