$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1188604800000,3.88451],[1188691200000,3.88451],[1188777600000,3.88451],[1188864000000,3.87556],[1188950400000,3.86143],[1189036800000,3.87308],[1189123200000,3.87365],[1189209600000,3.90828],[1189296000000,3.90828],[1189382400000,3.90828],[1189468800000,3.87996],[1189555200000,3.92418],[1189641600000,3.95038],[1189728000000,3.99294],[1189814400000,3.99367],[1189900800000,3.99367],[1189987200000,3.99367],[1190073600000,3.98719],[1190160000000,3.99614],[1190246400000,4.07634],[1190332800000,4.08366],[1190419200000,4.10243],[1190505600000,4.10243],[1190592000000,4.10243],[1190678400000,4.1204],[1190764800000,4.09281],[1190851200000,null],[1190937600000,null],[1191024000000,4.17297],[1191110400000,4.17297]], 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: [[1188604800000, 3.884506],[1188604800000, 3.884506],[1188691200000, 3.884506],[1188777600000, 3.884506],[1188864000000, 3.875562],[1188950400000, 3.861430],[1189036800000, 3.873082],[1189123200000, 3.873650],[1189209600000, 3.908278],[1189296000000, 3.908278],[1189382400000, 3.908278],[1189468800000, 3.879964],[1189555200000, 3.924182],[1189641600000, 3.950380],[1189728000000, 3.992936],[1189814400000, 3.993667],[1189900800000, 3.993667],[1189987200000, 3.993667],[1190073600000, 3.987190],[1190160000000, 3.996140],[1190246400000, 4.076344],[1190332800000, 4.083660],[1190419200000, 4.102431],[1190505600000, 4.102431],[1190592000000, 4.102431],[1190678400000, 4.120405],[1190764800000, 4.092807],[1191024000000, 4.172968],[1191110400000, 4.172968]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });