$(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: [[1380585600000,3.92386],[1380672000000,3.97276],[1380758400000,3.9606],[1380844800000,3.98872],[1380931200000,4.0015],[1381017600000,4.0015],[1381104000000,4.0015],[1381190400000,4.00491],[1381276800000,4.0281],[1381363200000,4.02224],[1381449600000,4.02224],[1381536000000,4.04043],[1381622400000,4.04043],[1381708800000,4.04043],[1381795200000,4.02603],[1381881600000,4.02004],[1381968000000,4.02514],[1382054400000,4.061],[1382140800000,4.06558],[1382227200000,4.06558],[1382313600000,4.06558],[1382400000000,4.04279],[1382486400000,4.03173],[1382572800000,4.04712],[1382659200000,4.03951],[1382745600000,4.02381],[1382832000000,4.02381],[1382918400000,4.02381],[1383004800000,4.02497],[1383091200000,4.0181],[1383177600000,4.0187]], 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: [[1380585600000, 3.923863],[1380585600000, 3.923863],[1380672000000, 3.972758],[1380758400000, 3.960601],[1380844800000, 3.988724],[1380931200000, 4.001504],[1381017600000, 4.001504],[1381104000000, 4.001504],[1381190400000, 4.004910],[1381276800000, 4.028099],[1381363200000, 4.022244],[1381449600000, 4.022244],[1381536000000, 4.040431],[1381622400000, 4.040431],[1381708800000, 4.040431],[1381795200000, 4.026033],[1381881600000, 4.020037],[1381968000000, 4.025143],[1382054400000, 4.061003],[1382140800000, 4.065577],[1382227200000, 4.065577],[1382313600000, 4.065577],[1382400000000, 4.042794],[1382486400000, 4.031734],[1382572800000, 4.047118],[1382659200000, 4.039514],[1382745600000, 4.023808],[1382832000000, 4.023808],[1382918400000, 4.023808],[1383004800000, 4.024970],[1383091200000, 4.018096],[1383177600000, 4.018704]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });