$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1285891200000,2.77544],[1285977600000,2.7754],[1286064000000,2.7754],[1286150400000,2.7754],[1286236800000,2.7754],[1286323200000,2.7754],[1286409600000,2.7754],[1286496000000,2.7754],[1286582400000,2.7754],[1286668800000,2.7754],[1286755200000,2.7754],[1286841600000,2.7754],[1286928000000,2.7754],[1287014400000,2.7754],[1287100800000,2.77502],[1287187200000,2.77509],[1287273600000,2.77509],[1287360000000,2.77509],[1287446400000,2.776],[1287532800000,2.776],[1287619200000,2.776],[1287705600000,2.776],[1287792000000,2.77607],[1287878400000,2.77607],[1287964800000,2.77607],[1288051200000,2.776],[1288137600000,2.776],[1288224000000,2.776],[1288310400000,2.776],[1288396800000,2.77579],[1288483200000,2.77579]], 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, 2.775439],[1285891200000, 2.775439],[1285977600000, 2.775404],[1286064000000, 2.775404],[1286150400000, 2.775404],[1286236800000, 2.775404],[1286323200000, 2.775404],[1286409600000, 2.775404],[1286496000000, 2.775404],[1286582400000, 2.775404],[1286668800000, 2.775404],[1286755200000, 2.775404],[1286841600000, 2.775404],[1286928000000, 2.775404],[1287014400000, 2.775404],[1287100800000, 2.775018],[1287187200000, 2.775088],[1287273600000, 2.775088],[1287360000000, 2.775088],[1287446400000, 2.776000],[1287532800000, 2.776000],[1287619200000, 2.776000],[1287705600000, 2.776000],[1287792000000, 2.776070],[1287878400000, 2.776070],[1287964800000, 2.776070],[1288051200000, 2.776000],[1288137600000, 2.776000],[1288224000000, 2.776000],[1288310400000, 2.776000],[1288396800000, 2.775789],[1288483200000, 2.775789]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });