$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1264982400000,1.09109],[1265068800000,1.09739],[1265155200000,1.10148],[1265241600000,1.10715],[1265328000000,1.09338],[1265414400000,1.06961],[1265500800000,1.06961],[1265587200000,1.06961],[1265673600000,1.0776],[1265760000000,1.08883],[1265846400000,1.0969],[1265932800000,1.10325],[1266019200000,1.09548],[1266105600000,1.09548],[1266192000000,1.09548],[1266278400000,1.102],[1266364800000,1.10585],[1266451200000,1.11874],[1266537600000,1.10845],[1266624000000,1.09816],[1266710400000,1.09816],[1266796800000,1.09816],[1266883200000,1.10996],[1266969600000,1.10793],[1267056000000,1.10619],[1267142400000,1.10545],[1267228800000,1.11479],[1267315200000,1.11479]], 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: [[1264982400000, 1.091085],[1264982400000, 1.091085],[1265068800000, 1.097393],[1265155200000, 1.101479],[1265241600000, 1.107152],[1265328000000, 1.093384],[1265414400000, 1.069611],[1265500800000, 1.069611],[1265587200000, 1.069611],[1265673600000, 1.077598],[1265760000000, 1.088829],[1265846400000, 1.096899],[1265932800000, 1.103247],[1266019200000, 1.095477],[1266105600000, 1.095477],[1266192000000, 1.095477],[1266278400000, 1.102001],[1266364800000, 1.105850],[1266451200000, 1.118737],[1266537600000, 1.108453],[1266624000000, 1.098161],[1266710400000, 1.098161],[1266796800000, 1.098161],[1266883200000, 1.109958],[1266969600000, 1.107925],[1267056000000, 1.106188],[1267142400000, 1.105452],[1267228800000, 1.114788],[1267315200000, 1.114788]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });