$(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: [[1214870400000,3.93408],[1214956800000,3.90913],[1215043200000,3.89864],[1215129600000,3.86161],[1215216000000,3.9154],[1215302400000,3.9154],[1215388800000,3.9154],[1215475200000,3.94051],[1215561600000,3.94207],[1215648000000,3.96288],[1215734400000,3.96959],[1215820800000,3.94803],[1215907200000,3.94803],[1215993600000,3.94803],[1216080000000,3.9896],[1216166400000,3.96482],[1216252800000,3.98439],[1216339200000,4.01454],[1216425600000,4.07286],[1216512000000,4.07286],[1216598400000,4.07286],[1216684800000,4.05949],[1216771200000,4.04366],[1216857600000,4.04295],[1216944000000,4.02058],[1217030400000,4.01754],[1217116800000,4.01754],[1217203200000,4.01754],[1217289600000,4.02182],[1217376000000,4.02218],[1217462400000,4.07127]], 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: [[1214870400000, 3.934079],[1214870400000, 3.934079],[1214956800000, 3.909127],[1215043200000, 3.898642],[1215129600000, 3.861608],[1215216000000, 3.915404],[1215302400000, 3.915404],[1215388800000, 3.915404],[1215475200000, 3.940512],[1215561600000, 3.942068],[1215648000000, 3.962881],[1215734400000, 3.969593],[1215820800000, 3.948028],[1215907200000, 3.948028],[1215993600000, 3.948028],[1216080000000, 3.989604],[1216166400000, 3.964816],[1216252800000, 3.984387],[1216339200000, 4.014544],[1216425600000, 4.072862],[1216512000000, 4.072862],[1216598400000, 4.072862],[1216684800000, 4.059487],[1216771200000, 4.043663],[1216857600000, 4.042949],[1216944000000, 4.020578],[1217030400000, 4.017537],[1217116800000, 4.017537],[1217203200000, 4.017537],[1217289600000, 4.021819],[1217376000000, 4.022180],[1217462400000, 4.071273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });