$(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: [[1318032000000,7.9727],[1318118400000,7.9727],[1318204800000,7.9727],[1318291200000,7.9727],[1318377600000,7.9727],[1318464000000,7.9737],[1318550400000,7.9757],[1318636800000,7.9757],[1318723200000,7.9757],[1318809600000,7.9757],[1318896000000,7.9757],[1318982400000,7.9757],[1319068800000,7.9757],[1319155200000,7.9757],[1319241600000,7.9757],[1319328000000,7.9757],[1319414400000,7.9757],[1319500800000,7.9757],[1319587200000,7.9762],[1319673600000,7.9762],[1319760000000,7.977]], 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: [[1318032000000, 7.972700],[1318032000000, 7.972700],[1318118400000, 7.972700],[1318204800000, 7.972700],[1318291200000, 7.972700],[1318377600000, 7.972700],[1318464000000, 7.973700],[1318550400000, 7.975700],[1318636800000, 7.975700],[1318723200000, 7.975700],[1318809600000, 7.975700],[1318896000000, 7.975700],[1318982400000, 7.975700],[1319068800000, 7.975700],[1319155200000, 7.975700],[1319241600000, 7.975700],[1319328000000, 7.975700],[1319414400000, 7.975700],[1319500800000, 7.975700],[1319587200000, 7.976200],[1319673600000, 7.976200],[1319760000000, 7.977000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });