$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1246406400000,0.24616],[1246492800000,0.24493],[1246579200000,0.24541],[1246665600000,0.24442],[1246752000000,0.24442],[1246838400000,0.24442],[1246924800000,0.24313],[1247011200000,0.24246],[1247097600000,0.2399],[1247184000000,0.23904],[1247270400000,0.238],[1247356800000,0.238],[1247443200000,0.238],[1247529600000,0.23063],[1247616000000,0.23461],[1247702400000,0.23812],[1247788800000,0.24107],[1247875200000,0.24074],[1247961600000,0.24074],[1248048000000,0.24074],[1248134400000,0.24423],[1248220800000,0.24569],[1248307200000,0.24658],[1248393600000,0.24659],[1248480000000,0.2462],[1248566400000,0.2462],[1248652800000,0.2462],[1248739200000,0.25017],[1248825600000,0.25096],[1248912000000,0.2451],[1248998400000,0.24241]], 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: [[1246406400000, 0.246160],[1246406400000, 0.246160],[1246492800000, 0.244930],[1246579200000, 0.245410],[1246665600000, 0.244420],[1246752000000, 0.244420],[1246838400000, 0.244420],[1246924800000, 0.243130],[1247011200000, 0.242460],[1247097600000, 0.239900],[1247184000000, 0.239040],[1247270400000, 0.238000],[1247356800000, 0.238000],[1247443200000, 0.238000],[1247529600000, 0.230630],[1247616000000, 0.234610],[1247702400000, 0.238120],[1247788800000, 0.241070],[1247875200000, 0.240740],[1247961600000, 0.240740],[1248048000000, 0.240740],[1248134400000, 0.244230],[1248220800000, 0.245690],[1248307200000, 0.246580],[1248393600000, 0.246590],[1248480000000, 0.246200],[1248566400000, 0.246200],[1248652800000, 0.246200],[1248739200000, 0.250170],[1248825600000, 0.250960],[1248912000000, 0.245100],[1248998400000, 0.242410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });