$(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: [[1257033600000,7.993],[1257120000000,7.993],[1257206400000,7.997],[1257292800000,8.0116],[1257379200000,8.0148],[1257465600000,8.0138],[1257552000000,7.993],[1257638400000,7.993],[1257724800000,7.993],[1257811200000,7.9903],[1257897600000,7.99],[1257984000000,7.9918],[1258070400000,7.9963],[1258156800000,7.996],[1258243200000,7.996],[1258329600000,7.996],[1258416000000,7.9933],[1258502400000,7.9903],[1258588800000,7.9909],[1258675200000,7.99],[1258761600000,7.99],[1258848000000,7.99],[1258934400000,7.99],[1259020800000,7.99],[1259107200000,7.99],[1259193600000,7.985],[1259280000000,7.981],[1259366400000,7.9809],[1259452800000,7.9809],[1259539200000,7.9809]], 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: [[1257033600000, 7.993000],[1257033600000, 7.993000],[1257120000000, 7.993000],[1257206400000, 7.997000],[1257292800000, 8.011600],[1257379200000, 8.014800],[1257465600000, 8.013800],[1257552000000, 7.993000],[1257638400000, 7.993000],[1257724800000, 7.993000],[1257811200000, 7.990300],[1257897600000, 7.990000],[1257984000000, 7.991800],[1258070400000, 7.996300],[1258156800000, 7.996000],[1258243200000, 7.996000],[1258329600000, 7.996000],[1258416000000, 7.993300],[1258502400000, 7.990300],[1258588800000, 7.990900],[1258675200000, 7.990000],[1258761600000, 7.990000],[1258848000000, 7.990000],[1258934400000, 7.990000],[1259020800000, 7.990000],[1259107200000, 7.990000],[1259193600000, 7.985000],[1259280000000, 7.981000],[1259366400000, 7.980900],[1259452800000, 7.980900],[1259539200000, 7.980900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });