$(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: [[1385856000000,3.9597],[1385942400000,3.9597],[1386028800000,3.93087],[1386115200000,3.92155],[1386201600000,3.90668],[1386288000000,3.91077],[1386374400000,3.91708],[1386460800000,3.91708],[1386547200000,3.91708],[1386633600000,3.93626],[1386720000000,3.93892],[1386806400000,3.93013],[1386892800000,3.92204],[1386979200000,3.91969],[1387065600000,3.91969],[1387152000000,3.91969],[1387238400000,3.93677],[1387324800000,3.91715],[1387411200000,3.90574],[1387497600000,3.85491],[1387584000000,3.81851],[1387670400000,3.81851],[1387756800000,3.81851],[1387843200000,3.82136],[1387929600000,3.841],[1388016000000,3.841],[1388102400000,3.841],[1388188800000,3.69789],[1388275200000,3.69789],[1388361600000,3.69789],[1388448000000,3.69789]], 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: [[1385856000000, 3.959699],[1385856000000, 3.959699],[1385942400000, 3.959699],[1386028800000, 3.930869],[1386115200000, 3.921552],[1386201600000, 3.906680],[1386288000000, 3.910770],[1386374400000, 3.917075],[1386460800000, 3.917075],[1386547200000, 3.917075],[1386633600000, 3.936260],[1386720000000, 3.938920],[1386806400000, 3.930127],[1386892800000, 3.922045],[1386979200000, 3.919688],[1387065600000, 3.919688],[1387152000000, 3.919688],[1387238400000, 3.936774],[1387324800000, 3.917154],[1387411200000, 3.905738],[1387497600000, 3.854906],[1387584000000, 3.818508],[1387670400000, 3.818508],[1387756800000, 3.818508],[1387843200000, 3.821357],[1387929600000, 3.840996],[1388016000000, 3.840996],[1388102400000, 3.840996],[1388188800000, 3.697890],[1388275200000, 3.697890],[1388361600000, 3.697890],[1388448000000, 3.697890]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });