$(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: [[1385856000000,0.24081],[1385942400000,0.24081],[1386028800000,0.24113],[1386115200000,0.24042],[1386201600000,0.2403],[1386288000000,0.24138],[1386374400000,0.24257],[1386460800000,0.24257],[1386547200000,0.24257],[1386633600000,0.24385],[1386720000000,0.2438],[1386806400000,0.2442],[1386892800000,0.24405],[1386979200000,0.2432],[1387065600000,0.2432],[1387152000000,0.2432],[1387238400000,0.2432],[1387324800000,0.24321],[1387411200000,0.24265],[1387497600000,0.24256],[1387584000000,0.24236],[1387670400000,0.24236],[1387756800000,0.24236],[1387843200000,0.24258],[1387929600000,0.24497],[1388016000000,0.24482],[1388102400000,0.24465],[1388188800000,0.24497],[1388275200000,0.24497],[1388361600000,0.24497],[1388448000000,0.24497]], 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: [[1385856000000, 0.240810],[1385856000000, 0.240810],[1385942400000, 0.240810],[1386028800000, 0.241130],[1386115200000, 0.240420],[1386201600000, 0.240300],[1386288000000, 0.241380],[1386374400000, 0.242570],[1386460800000, 0.242570],[1386547200000, 0.242570],[1386633600000, 0.243850],[1386720000000, 0.243800],[1386806400000, 0.244200],[1386892800000, 0.244050],[1386979200000, 0.243200],[1387065600000, 0.243200],[1387152000000, 0.243200],[1387238400000, 0.243200],[1387324800000, 0.243210],[1387411200000, 0.242650],[1387497600000, 0.242560],[1387584000000, 0.242360],[1387670400000, 0.242360],[1387756800000, 0.242360],[1387843200000, 0.242580],[1387929600000, 0.244970],[1388016000000, 0.244820],[1388102400000, 0.244650],[1388188800000, 0.244970],[1388275200000, 0.244970],[1388361600000, 0.244970],[1388448000000, 0.244970]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });