$(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: [[1164931200000,3.47007],[1165017600000,3.47386],[1165104000000,3.47386],[1165190400000,3.47386],[1165276800000,3.46142],[1165363200000,3.48275],[1165449600000,3.49116],[1165536000000,3.52585],[1165622400000,3.51844],[1165708800000,3.51844],[1165795200000,3.51844],[1165881600000,3.52644],[1165968000000,3.54268],[1166054400000,3.54079],[1166140800000,3.54548],[1166227200000,3.54387],[1166313600000,3.54387],[1166400000000,3.54387],[1166486400000,3.54336],[1166572800000,3.52602],[1166659200000,3.5362],[1166745600000,3.53307],[1166832000000,3.54171],[1166918400000,3.54171],[1167004800000,3.54171],[1167091200000,3.54171],[1167177600000,3.54171],[1167264000000,3.54397],[1167350400000,3.56733],[1167436800000,3.56805]], 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: [[1164931200000, 3.470068],[1164931200000, 3.470068],[1165017600000, 3.473859],[1165104000000, 3.473859],[1165190400000, 3.473859],[1165276800000, 3.461423],[1165363200000, 3.482750],[1165449600000, 3.491157],[1165536000000, 3.525852],[1165622400000, 3.518436],[1165708800000, 3.518436],[1165795200000, 3.518436],[1165881600000, 3.526436],[1165968000000, 3.542677],[1166054400000, 3.540792],[1166140800000, 3.545482],[1166227200000, 3.543869],[1166313600000, 3.543869],[1166400000000, 3.543869],[1166486400000, 3.543361],[1166572800000, 3.526023],[1166659200000, 3.536205],[1166745600000, 3.533070],[1166832000000, 3.541712],[1166918400000, 3.541712],[1167004800000, 3.541712],[1167091200000, 3.541712],[1167177600000, 3.541712],[1167264000000, 3.543968],[1167350400000, 3.567334],[1167436800000, 3.568053]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });