$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1285891200000,7.91],[1285977600000,7.9099],[1286064000000,7.9099],[1286150400000,7.9099],[1286236800000,7.9099],[1286323200000,7.9099],[1286409600000,7.9099],[1286496000000,7.9099],[1286582400000,7.9099],[1286668800000,7.9099],[1286755200000,7.9099],[1286841600000,7.9099],[1286928000000,7.9099],[1287014400000,7.9099],[1287100800000,7.9088],[1287187200000,7.909],[1287273600000,7.909],[1287360000000,7.909],[1287446400000,7.9116],[1287532800000,7.9116],[1287619200000,7.9116],[1287705600000,7.9116],[1287792000000,7.9118],[1287878400000,7.9118],[1287964800000,7.9118],[1288051200000,7.9116],[1288137600000,7.9116],[1288224000000,7.9116],[1288310400000,7.9116],[1288396800000,7.911],[1288483200000,7.911]], 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: [[1285891200000, 7.910000],[1285891200000, 7.910000],[1285977600000, 7.909900],[1286064000000, 7.909900],[1286150400000, 7.909900],[1286236800000, 7.909900],[1286323200000, 7.909900],[1286409600000, 7.909900],[1286496000000, 7.909900],[1286582400000, 7.909900],[1286668800000, 7.909900],[1286755200000, 7.909900],[1286841600000, 7.909900],[1286928000000, 7.909900],[1287014400000, 7.909900],[1287100800000, 7.908800],[1287187200000, 7.909000],[1287273600000, 7.909000],[1287360000000, 7.909000],[1287446400000, 7.911600],[1287532800000, 7.911600],[1287619200000, 7.911600],[1287705600000, 7.911600],[1287792000000, 7.911800],[1287878400000, 7.911800],[1287964800000, 7.911800],[1288051200000, 7.911600],[1288137600000, 7.911600],[1288224000000, 7.911600],[1288310400000, 7.911600],[1288396800000, 7.911000],[1288483200000, 7.911000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });