$(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: [[1107216000000,3.96864],[1107302400000,3.98382],[1107388800000,3.99025],[1107475200000,4.00338],[1107561600000,4.01534],[1107648000000,4.01534],[1107734400000,4.01534],[1107820800000,4.02719],[1107907200000,3.97757],[1107993600000,3.97859],[1108080000000,3.94974],[1108166400000,4.01153],[1108252800000,4.01153],[1108339200000,4.01153],[1108425600000,4.02963],[1108512000000,4.0489],[1108598400000,4.03482],[1108684800000,4.03748],[1108771200000,4.05487],[1108857600000,4.05487],[1108944000000,4.05487],[1109030400000,4.05461],[1109116800000,4.08359],[1109203200000,4.05072],[1109289600000,4.09826],[1109376000000,4.09398],[1109462400000,4.09398],[1109548800000,4.09398]], 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: [[1107216000000, 3.968641],[1107216000000, 3.968641],[1107302400000, 3.983819],[1107388800000, 3.990251],[1107475200000, 4.003381],[1107561600000, 4.015336],[1107648000000, 4.015336],[1107734400000, 4.015336],[1107820800000, 4.027189],[1107907200000, 3.977568],[1107993600000, 3.978591],[1108080000000, 3.949736],[1108166400000, 4.011529],[1108252800000, 4.011529],[1108339200000, 4.011529],[1108425600000, 4.029632],[1108512000000, 4.048896],[1108598400000, 4.034816],[1108684800000, 4.037483],[1108771200000, 4.054869],[1108857600000, 4.054869],[1108944000000, 4.054869],[1109030400000, 4.054610],[1109116800000, 4.083588],[1109203200000, 4.050719],[1109289600000, 4.098264],[1109376000000, 4.093975],[1109462400000, 4.093975],[1109548800000, 4.093975]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });