$(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: [[1277942400000,2.77379],[1278028800000,2.77498],[1278115200000,2.77561],[1278201600000,2.77561],[1278288000000,2.77561],[1278374400000,2.7753],[1278460800000,2.77488],[1278547200000,2.77446],[1278633600000,2.77397],[1278720000000,2.77326],[1278806400000,2.77326],[1278892800000,2.77326],[1278979200000,2.77305],[1279065600000,2.7727],[1279152000000,2.77253],[1279238400000,2.77221],[1279324800000,2.77186],[1279411200000,2.77186],[1279497600000,2.77186],[1279584000000,2.77168],[1279670400000,2.77123],[1279756800000,2.77098],[1279843200000,2.77088],[1279929600000,2.77053],[1280016000000,2.77053],[1280102400000,2.77053],[1280188800000,2.77025],[1280275200000,2.76989],[1280361600000,2.76954],[1280448000000,2.76954],[1280534400000,2.76937]], 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: [[1277942400000, 2.773789],[1277942400000, 2.773789],[1278028800000, 2.774982],[1278115200000, 2.775614],[1278201600000, 2.775614],[1278288000000, 2.775614],[1278374400000, 2.775298],[1278460800000, 2.774877],[1278547200000, 2.774456],[1278633600000, 2.773965],[1278720000000, 2.773263],[1278806400000, 2.773263],[1278892800000, 2.773263],[1278979200000, 2.773053],[1279065600000, 2.772702],[1279152000000, 2.772526],[1279238400000, 2.772211],[1279324800000, 2.771860],[1279411200000, 2.771860],[1279497600000, 2.771860],[1279584000000, 2.771684],[1279670400000, 2.771228],[1279756800000, 2.770982],[1279843200000, 2.770877],[1279929600000, 2.770526],[1280016000000, 2.770526],[1280102400000, 2.770526],[1280188800000, 2.770246],[1280275200000, 2.769895],[1280361600000, 2.769544],[1280448000000, 2.769544],[1280534400000, 2.769368]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });