$(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: [[1249084800000,1.249],[1249171200000,1.249],[1249257600000,1.249],[1249344000000,1.26659],[1249430400000,1.26942],[1249516800000,1.27718],[1249603200000,1.27685],[1249689600000,1.26382],[1249776000000,1.26382],[1249862400000,1.26382],[1249948800000,1.25946],[1250035200000,1.24036],[1250121600000,1.25585],[1250208000000,1.28667],[1250294400000,1.28852],[1250380800000,1.28852],[1250467200000,1.28852],[1250553600000,1.25868],[1250640000000,1.2729],[1250726400000,1.2774],[1250812800000,1.30647],[1250899200000,1.32998],[1250985600000,1.32998],[1251072000000,1.32998],[1251158400000,1.32998],[1251244800000,1.32489],[1251331200000,1.32193],[1251417600000,1.31868],[1251504000000,1.32986],[1251590400000,1.32986],[1251676800000,1.32986]], 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: [[1249084800000, 1.248995],[1249084800000, 1.248995],[1249171200000, 1.248995],[1249257600000, 1.248995],[1249344000000, 1.266590],[1249430400000, 1.269424],[1249516800000, 1.277176],[1249603200000, 1.276854],[1249689600000, 1.263823],[1249776000000, 1.263823],[1249862400000, 1.263823],[1249948800000, 1.259460],[1250035200000, 1.240362],[1250121600000, 1.255852],[1250208000000, 1.286669],[1250294400000, 1.288525],[1250380800000, 1.288525],[1250467200000, 1.288525],[1250553600000, 1.258683],[1250640000000, 1.272902],[1250726400000, 1.277405],[1250812800000, 1.306469],[1250899200000, 1.329985],[1250985600000, 1.329985],[1251072000000, 1.329985],[1251158400000, 1.329985],[1251244800000, 1.324889],[1251331200000, 1.321928],[1251417600000, 1.318684],[1251504000000, 1.329864],[1251590400000, 1.329864],[1251676800000, 1.329864]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });