$(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: [[1168041600000,3.5217],[1168128000000,3.5217],[1168214400000,3.5217],[1168300800000,3.5217],[1168387200000,3.51932],[1168473600000,3.46704],[1168560000000,3.50076],[1168646400000,3.5223],[1168732800000,3.5223],[1168819200000,3.5223],[1168905600000,3.53886],[1168992000000,3.52154],[1169078400000,3.53164],[1169164800000,3.55135],[1169251200000,3.56707],[1169337600000,3.56707],[1169424000000,3.56707],[1169510400000,3.58663],[1169596800000,3.57406],[1169683200000,3.57552],[1169769600000,3.56132],[1169856000000,3.53155],[1169942400000,3.53155],[1170028800000,3.53155],[1170115200000,3.53473],[1170201600000,3.53432]], 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: [[1168041600000, 3.521703],[1168041600000, 3.521703],[1168128000000, 3.521703],[1168214400000, 3.521703],[1168300800000, 3.521703],[1168387200000, 3.519320],[1168473600000, 3.467037],[1168560000000, 3.500758],[1168646400000, 3.522296],[1168732800000, 3.522296],[1168819200000, 3.522296],[1168905600000, 3.538856],[1168992000000, 3.521542],[1169078400000, 3.531635],[1169164800000, 3.551352],[1169251200000, 3.567070],[1169337600000, 3.567070],[1169424000000, 3.567070],[1169510400000, 3.586626],[1169596800000, 3.574057],[1169683200000, 3.575525],[1169769600000, 3.561316],[1169856000000, 3.531551],[1169942400000, 3.531551],[1170028800000, 3.531551],[1170115200000, 3.534726],[1170201600000, 3.534319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });