$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1385856000000,1.3076],[1385942400000,1.3076],[1386028800000,1.30204],[1386115200000,1.30916],[1386201600000,1.30727],[1386288000000,1.29299],[1386374400000,1.29467],[1386460800000,1.29467],[1386547200000,1.29467],[1386633600000,1.3013],[1386720000000,1.30814],[1386806400000,1.30665],[1386892800000,1.29893],[1386979200000,1.29234],[1387065600000,1.29234],[1387152000000,1.29234],[1387238400000,1.30549],[1387324800000,1.299],[1387411200000,1.31148],[1387497600000,1.30312],[1387584000000,1.29687],[1387670400000,1.29687],[1387756800000,1.29687],[1387843200000,1.3042],[1387929600000,1.29677],[1388016000000,1.29677],[1388102400000,1.29677],[1388188800000,1.30708],[1388275200000,1.30708],[1388361600000,1.30708],[1388448000000,1.30708]], 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, 1.307605],[1385856000000, 1.307605],[1385942400000, 1.307605],[1386028800000, 1.302043],[1386115200000, 1.309155],[1386201600000, 1.307272],[1386288000000, 1.292995],[1386374400000, 1.294669],[1386460800000, 1.294669],[1386547200000, 1.294669],[1386633600000, 1.301299],[1386720000000, 1.308144],[1386806400000, 1.306651],[1386892800000, 1.298927],[1386979200000, 1.292343],[1387065600000, 1.292343],[1387152000000, 1.292343],[1387238400000, 1.305490],[1387324800000, 1.299004],[1387411200000, 1.311483],[1387497600000, 1.303117],[1387584000000, 1.296868],[1387670400000, 1.296868],[1387756800000, 1.296868],[1387843200000, 1.304199],[1387929600000, 1.296772],[1388016000000, 1.296772],[1388102400000, 1.296772],[1388188800000, 1.307077],[1388275200000, 1.307077],[1388361600000, 1.307077],[1388448000000, 1.307077]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });