$(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: [[1277942400000,7.9053],[1278028800000,7.9087],[1278115200000,7.9105],[1278201600000,7.9105],[1278288000000,7.9105],[1278374400000,7.9096],[1278460800000,7.9084],[1278547200000,7.9072],[1278633600000,7.9058],[1278720000000,7.9038],[1278806400000,7.9038],[1278892800000,7.9038],[1278979200000,7.9032],[1279065600000,7.9022],[1279152000000,7.9017],[1279238400000,7.9008],[1279324800000,7.8998],[1279411200000,7.8998],[1279497600000,7.8998],[1279584000000,7.8993],[1279670400000,7.898],[1279756800000,7.8973],[1279843200000,7.897],[1279929600000,7.896],[1280016000000,7.896],[1280102400000,7.896],[1280188800000,7.8952],[1280275200000,7.8942],[1280361600000,7.8932],[1280448000000,7.8932],[1280534400000,7.8927]], 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, 7.905300],[1277942400000, 7.905300],[1278028800000, 7.908700],[1278115200000, 7.910500],[1278201600000, 7.910500],[1278288000000, 7.910500],[1278374400000, 7.909600],[1278460800000, 7.908400],[1278547200000, 7.907200],[1278633600000, 7.905800],[1278720000000, 7.903800],[1278806400000, 7.903800],[1278892800000, 7.903800],[1278979200000, 7.903200],[1279065600000, 7.902200],[1279152000000, 7.901700],[1279238400000, 7.900800],[1279324800000, 7.899800],[1279411200000, 7.899800],[1279497600000, 7.899800],[1279584000000, 7.899300],[1279670400000, 7.898000],[1279756800000, 7.897300],[1279843200000, 7.897000],[1279929600000, 7.896000],[1280016000000, 7.896000],[1280102400000, 7.896000],[1280188800000, 7.895200],[1280275200000, 7.894200],[1280361600000, 7.893200],[1280448000000, 7.893200],[1280534400000, 7.892700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });