$(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: [[1130803200000,0.0242341],[1130889600000,0.0241971],[1130976000000,0.0241861],[1131062400000,0.0244963],[1131148800000,0.0241888],[1131235200000,0.0241888],[1131321600000,0.0241888],[1131408000000,0.0239237],[1131494400000,0.0238446],[1131580800000,0.0238203],[1131667200000,0.0236392],[1131753600000,0.0235216],[1131840000000,0.0235216],[1131926400000,0.0235216],[1132012800000,0.0236499],[1132099200000,0.0235429],[1132185600000,0.0235282],[1132272000000,0.023409],[1132358400000,0.023346],[1132444800000,0.023346],[1132531200000,0.023346],[1132617600000,0.0234964],[1132704000000,0.0232473],[1132790400000,0.0235473],[1132876800000,0.0236353],[1132963200000,0.023613],[1133049600000,0.023613],[1133136000000,0.023613],[1133222400000,0.0235893],[1133308800000,0.0236835]], 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: [[1130803200000, 0.024234],[1130803200000, 0.024234],[1130889600000, 0.024197],[1130976000000, 0.024186],[1131062400000, 0.024496],[1131148800000, 0.024189],[1131235200000, 0.024189],[1131321600000, 0.024189],[1131408000000, 0.023924],[1131494400000, 0.023845],[1131580800000, 0.023820],[1131667200000, 0.023639],[1131753600000, 0.023522],[1131840000000, 0.023522],[1131926400000, 0.023522],[1132012800000, 0.023650],[1132099200000, 0.023543],[1132185600000, 0.023528],[1132272000000, 0.023409],[1132358400000, 0.023346],[1132444800000, 0.023346],[1132531200000, 0.023346],[1132617600000, 0.023496],[1132704000000, 0.023247],[1132790400000, 0.023547],[1132876800000, 0.023635],[1132963200000, 0.023613],[1133049600000, 0.023613],[1133136000000, 0.023613],[1133222400000, 0.023589],[1133308800000, 0.023683]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });