$(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: [[1249084800000,5.21561],[1249171200000,5.21561],[1249257600000,5.21561],[1249344000000,5.24623],[1249430400000,5.23876],[1249516800000,5.26724],[1249603200000,5.21302],[1249689600000,5.19265],[1249776000000,5.19265],[1249862400000,5.19265],[1249948800000,5.23185],[1250035200000,5.15809],[1250121600000,5.15669],[1250208000000,5.26009],[1250294400000,5.24697],[1250380800000,5.24697],[1250467200000,5.24697],[1250553600000,5.17571],[1250640000000,5.22826],[1250726400000,5.20324],[1250812800000,5.28459],[1250899200000,5.33578],[1250985600000,5.33578],[1251072000000,5.33578],[1251158400000,5.33578],[1251244800000,5.34243],[1251331200000,5.30938],[1251417600000,5.31879],[1251504000000,5.32946],[1251590400000,5.32946],[1251676800000,5.32946]], 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: [[1249084800000, 5.215615],[1249084800000, 5.215615],[1249171200000, 5.215615],[1249257600000, 5.215615],[1249344000000, 5.246231],[1249430400000, 5.238760],[1249516800000, 5.267236],[1249603200000, 5.213019],[1249689600000, 5.192651],[1249776000000, 5.192651],[1249862400000, 5.192651],[1249948800000, 5.231851],[1250035200000, 5.158093],[1250121600000, 5.156689],[1250208000000, 5.260090],[1250294400000, 5.246965],[1250380800000, 5.246965],[1250467200000, 5.246965],[1250553600000, 5.175714],[1250640000000, 5.228261],[1250726400000, 5.203241],[1250812800000, 5.284589],[1250899200000, 5.335781],[1250985600000, 5.335781],[1251072000000, 5.335781],[1251158400000, 5.335781],[1251244800000, 5.342434],[1251331200000, 5.309381],[1251417600000, 5.318793],[1251504000000, 5.329463],[1251590400000, 5.329463],[1251676800000, 5.329463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });