$(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: [[1143849600000,3.74473],[1143936000000,3.74473],[1144022400000,3.74473],[1144108800000,3.74996],[1144195200000,3.78038],[1144281600000,3.78087],[1144368000000,3.77073],[1144454400000,3.78253],[1144540800000,3.78253],[1144627200000,3.78253],[1144713600000,3.75422],[1144800000000,3.77114],[1144886400000,3.76229],[1144972800000,3.73546],[1145059200000,3.73546],[1145145600000,3.73546],[1145232000000,3.73546],[1145318400000,3.73546],[1145404800000,3.75805],[1145491200000,3.79472],[1145577600000,3.79819],[1145664000000,3.80604],[1145750400000,3.80604],[1145836800000,3.80604],[1145923200000,3.80604],[1146009600000,3.81738],[1146096000000,3.80165],[1146182400000,3.80405],[1146268800000,3.81397],[1146355200000,3.81397]], 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: [[1143849600000, 3.744728],[1143849600000, 3.744728],[1143936000000, 3.744728],[1144022400000, 3.744728],[1144108800000, 3.749963],[1144195200000, 3.780383],[1144281600000, 3.780871],[1144368000000, 3.770732],[1144454400000, 3.782531],[1144540800000, 3.782531],[1144627200000, 3.782531],[1144713600000, 3.754221],[1144800000000, 3.771144],[1144886400000, 3.762289],[1144972800000, 3.735456],[1145059200000, 3.735456],[1145145600000, 3.735456],[1145232000000, 3.735456],[1145318400000, 3.735456],[1145404800000, 3.758054],[1145491200000, 3.794723],[1145577600000, 3.798191],[1145664000000, 3.806043],[1145750400000, 3.806043],[1145836800000, 3.806043],[1145923200000, 3.806043],[1146009600000, 3.817378],[1146096000000, 3.801651],[1146182400000, 3.804047],[1146268800000, 3.813967],[1146355200000, 3.813967]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });