$(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: [[1370044800000,4.25077],[1370131200000,4.25077],[1370217600000,4.25077],[1370304000000,4.22568],[1370390400000,4.26806],[1370476800000,4.24709],[1370563200000,4.23252],[1370649600000,4.24288],[1370736000000,4.24288],[1370822400000,4.24288],[1370908800000,4.21425],[1370995200000,4.21465],[1371081600000,4.26094],[1371168000000,4.27468],[1371254400000,4.30943],[1371340800000,4.30943],[1371427200000,4.30943],[1371513600000,4.2802],[1371600000000,4.24756],[1371686400000,4.24575],[1371772800000,4.16631],[1371859200000,4.12885],[1371945600000,4.12885],[1372032000000,4.12885],[1372118400000,4.12885],[1372204800000,4.14695],[1372291200000,4.12967],[1372377600000,4.15496],[1372464000000,4.15496],[1372550400000,4.15496]], 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: [[1370044800000, 4.250775],[1370044800000, 4.250775],[1370131200000, 4.250775],[1370217600000, 4.250775],[1370304000000, 4.225684],[1370390400000, 4.268062],[1370476800000, 4.247094],[1370563200000, 4.232518],[1370649600000, 4.242882],[1370736000000, 4.242882],[1370822400000, 4.242882],[1370908800000, 4.214247],[1370995200000, 4.214647],[1371081600000, 4.260944],[1371168000000, 4.274683],[1371254400000, 4.309430],[1371340800000, 4.309430],[1371427200000, 4.309430],[1371513600000, 4.280199],[1371600000000, 4.247562],[1371686400000, 4.245747],[1371772800000, 4.166309],[1371859200000, 4.128855],[1371945600000, 4.128855],[1372032000000, 4.128855],[1372118400000, 4.128855],[1372204800000, 4.146951],[1372291200000, 4.129674],[1372377600000, 4.154957],[1372464000000, 4.154957],[1372550400000, 4.154957]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });