$(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: [[1267401600000,5.15913],[1267488000000,5.17576],[1267574400000,5.20275],[1267660800000,5.18964],[1267747200000,5.16705],[1267833600000,5.16337],[1267920000000,5.16337],[1268006400000,5.16337],[1268092800000,5.16337],[1268179200000,5.18039],[1268265600000,5.18991],[1268352000000,5.20231],[1268438400000,5.22491],[1268524800000,5.22491],[1268611200000,5.22491],[1268697600000,5.22515],[1268784000000,5.22652],[1268870400000,5.26958],[1268956800000,5.23431],[1269043200000,5.19083],[1269129600000,5.19083],[1269216000000,5.19083],[1269302400000,5.1309],[1269388800000,5.15158],[1269475200000,5.13498],[1269561600000,5.15583],[1269648000000,5.16005],[1269734400000,5.16005],[1269820800000,5.16005],[1269907200000,5.17212],[1269993600000,5.19093]], 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: [[1267401600000, 5.159131],[1267401600000, 5.159131],[1267488000000, 5.175763],[1267574400000, 5.202750],[1267660800000, 5.189638],[1267747200000, 5.167048],[1267833600000, 5.163372],[1267920000000, 5.163372],[1268006400000, 5.163372],[1268092800000, 5.163372],[1268179200000, 5.180391],[1268265600000, 5.189914],[1268352000000, 5.202307],[1268438400000, 5.224911],[1268524800000, 5.224911],[1268611200000, 5.224911],[1268697600000, 5.225154],[1268784000000, 5.226521],[1268870400000, 5.269577],[1268956800000, 5.234310],[1269043200000, 5.190835],[1269129600000, 5.190835],[1269216000000, 5.190835],[1269302400000, 5.130900],[1269388800000, 5.151579],[1269475200000, 5.134978],[1269561600000, 5.155826],[1269648000000, 5.160045],[1269734400000, 5.160045],[1269820800000, 5.160045],[1269907200000, 5.172117],[1269993600000, 5.190927]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });