$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1362096000000,0.035477],[1362182400000,0.035196],[1362268800000,0.035196],[1362355200000,0.035196],[1362441600000,0.035039],[1362528000000,0.034858],[1362614400000,0.034898],[1362700800000,0.034721],[1362787200000,0.034721],[1362873600000,0.034721],[1362960000000,0.034721],[1363046400000,0.034232],[1363132800000,0.034247],[1363219200000,0.033946],[1363305600000,0.03387],[1363392000000,0.034281],[1363478400000,0.034281],[1363564800000,0.034281],[1363651200000,0.033643],[1363737600000,0.0339],[1363824000000,0.033928],[1363910400000,0.033786],[1363996800000,0.033684],[1364083200000,0.033684],[1364169600000,0.033684],[1364256000000,0.033738],[1364342400000,0.03376],[1364428800000,0.033557],[1364515200000,0.033621],[1364601600000,0.033621],[1364688000000,0.033621]], 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, 0.035477],[1362096000000, 0.035477],[1362182400000, 0.035196],[1362268800000, 0.035196],[1362355200000, 0.035196],[1362441600000, 0.035039],[1362528000000, 0.034858],[1362614400000, 0.034898],[1362700800000, 0.034721],[1362787200000, 0.034721],[1362873600000, 0.034721],[1362960000000, 0.034721],[1363046400000, 0.034232],[1363132800000, 0.034247],[1363219200000, 0.033946],[1363305600000, 0.033870],[1363392000000, 0.034281],[1363478400000, 0.034281],[1363564800000, 0.034281],[1363651200000, 0.033643],[1363737600000, 0.033900],[1363824000000, 0.033928],[1363910400000, 0.033786],[1363996800000, 0.033684],[1364083200000, 0.033684],[1364169600000, 0.033684],[1364256000000, 0.033738],[1364342400000, 0.033760],[1364428800000, 0.033557],[1364515200000, 0.033621],[1364601600000, 0.033621],[1364688000000, 0.033621]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });