$(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: [[1375315200000,4.14109],[1375401600000,4.12699],[1375488000000,4.10453],[1375574400000,null],[1375660800000,4.10453],[1375747200000,4.13434],[1375833600000,4.14313],[1375920000000,4.13592],[1376006400000,4.15382],[1376092800000,4.16613],[1376179200000,4.16613],[1376265600000,4.16613],[1376352000000,4.15188],[1376438400000,4.1456],[1376524800000,4.12451],[1376611200000,4.13552],[1376697600000,4.12578],[1376784000000,4.12578],[1376870400000,4.12578],[1376956800000,4.09359],[1377043200000,4.10265],[1377129600000,4.08548],[1377216000000,4.02414],[1377302400000,4.007],[1377388800000,4.007],[1377475200000,4.007],[1377561600000,4.007],[1377648000000,3.93659],[1377734400000,3.85832],[1377820800000,3.93554],[1377907200000,3.9373]], 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: [[1375315200000, 4.141087],[1375315200000, 4.141087],[1375401600000, 4.126988],[1375488000000, 4.104530],[1375660800000, 4.104530],[1375747200000, 4.134343],[1375833600000, 4.143132],[1375920000000, 4.135918],[1376006400000, 4.153823],[1376092800000, 4.166130],[1376179200000, 4.166130],[1376265600000, 4.166130],[1376352000000, 4.151883],[1376438400000, 4.145605],[1376524800000, 4.124505],[1376611200000, 4.135522],[1376697600000, 4.125779],[1376784000000, 4.125779],[1376870400000, 4.125779],[1376956800000, 4.093594],[1377043200000, 4.102651],[1377129600000, 4.085481],[1377216000000, 4.024137],[1377302400000, 4.007001],[1377388800000, 4.007001],[1377475200000, 4.007001],[1377561600000, 4.007001],[1377648000000, 3.936586],[1377734400000, 3.858321],[1377820800000, 3.935536],[1377907200000, 3.937299]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });