$(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: [[1133395200000,3.71784],[1133481600000,3.71026],[1133568000000,3.71135],[1133654400000,3.71135],[1133740800000,3.71135],[1133827200000,3.72],[1133913600000,3.7281],[1134000000000,3.71968],[1134086400000,3.71394],[1134172800000,3.72243],[1134259200000,3.72243],[1134345600000,3.72243],[1134432000000,3.73627],[1134518400000,3.7451],[1134604800000,3.75858],[1134691200000,3.74505],[1134777600000,3.7389],[1134864000000,3.7389],[1134950400000,3.7389],[1135036800000,3.74281],[1135123200000,3.73802],[1135209600000,3.73706],[1135296000000,3.72526],[1135382400000,3.74066],[1135468800000,3.74066],[1135555200000,3.74066],[1135641600000,3.74066],[1135728000000,3.73752],[1135814400000,3.74344],[1135900800000,3.74092]], 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: [[1133395200000, 3.717844],[1133395200000, 3.717844],[1133481600000, 3.710262],[1133568000000, 3.711350],[1133654400000, 3.711350],[1133740800000, 3.711350],[1133827200000, 3.720004],[1133913600000, 3.728097],[1134000000000, 3.719682],[1134086400000, 3.713941],[1134172800000, 3.722432],[1134259200000, 3.722432],[1134345600000, 3.722432],[1134432000000, 3.736273],[1134518400000, 3.745103],[1134604800000, 3.758576],[1134691200000, 3.745053],[1134777600000, 3.738903],[1134864000000, 3.738903],[1134950400000, 3.738903],[1135036800000, 3.742812],[1135123200000, 3.738019],[1135209600000, 3.737057],[1135296000000, 3.725265],[1135382400000, 3.740659],[1135468800000, 3.740659],[1135555200000, 3.740659],[1135641600000, 3.740659],[1135728000000, 3.737517],[1135814400000, 3.743440],[1135900800000, 3.740916]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });