$(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: [[1364774400000,1.36249],[1364860800000,1.36249],[1364947200000,1.37445],[1365033600000,1.37695],[1365120000000,1.37541],[1365206400000,1.38921],[1365292800000,1.38921],[1365379200000,1.38921],[1365465600000,1.39647],[1365552000000,1.39231],[1365638400000,1.3935],[1365724800000,1.40244],[1365811200000,1.39434],[1365897600000,1.39434],[1365984000000,1.39434],[1366070400000,1.39399],[1366156800000,1.39511],[1366243200000,1.38902],[1366329600000,1.37431],[1366416000000,1.37995],[1366502400000,1.37995],[1366588800000,1.37995],[1366675200000,1.36949],[1366761600000,1.35238],[1366848000000,1.35396],[1366934400000,1.36602],[1367020800000,1.36326],[1367107200000,1.36326],[1367193600000,1.36326],[1367280000000,1.37748]], 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: [[1364774400000, 1.362492],[1364774400000, 1.362492],[1364860800000, 1.362492],[1364947200000, 1.374449],[1365033600000, 1.376945],[1365120000000, 1.375410],[1365206400000, 1.389210],[1365292800000, 1.389210],[1365379200000, 1.389210],[1365465600000, 1.396470],[1365552000000, 1.392315],[1365638400000, 1.393504],[1365724800000, 1.402436],[1365811200000, 1.394342],[1365897600000, 1.394342],[1365984000000, 1.394342],[1366070400000, 1.393993],[1366156800000, 1.395109],[1366243200000, 1.389015],[1366329600000, 1.374307],[1366416000000, 1.379954],[1366502400000, 1.379954],[1366588800000, 1.379954],[1366675200000, 1.369493],[1366761600000, 1.352381],[1366848000000, 1.353959],[1366934400000, 1.366021],[1367020800000, 1.363262],[1367107200000, 1.363262],[1367193600000, 1.363262],[1367280000000, 1.377477]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });