$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1172707200000,0.0261938],[1172793600000,0.026068],[1172880000000,0.0261263],[1172966400000,0.0261263],[1173052800000,0.0261263],[1173139200000,0.0259471],[1173225600000,0.0261224],[1173312000000,0.0262264],[1173398400000,0.0262264],[1173484800000,0.0262264],[1173571200000,0.0262264],[1173657600000,0.0262264],[1173744000000,0.0265868],[1173830400000,0.0267004],[1173916800000,0.026494],[1174003200000,0.026693],[1174089600000,0.0270137],[1174176000000,0.0270137],[1174262400000,0.0270137],[1174348800000,0.0272901],[1174435200000,0.0272481],[1174521600000,0.0271034],[1174608000000,0.0274087],[1174694400000,0.0272806],[1174780800000,0.0272806],[1174867200000,0.0272806],[1174953600000,0.0271394],[1175040000000,0.0272267],[1175126400000,0.0270539],[1175212800000,0.0271885],[1175299200000,0.0271412]], 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: [[1172707200000, 0.026194],[1172707200000, 0.026194],[1172793600000, 0.026068],[1172880000000, 0.026126],[1172966400000, 0.026126],[1173052800000, 0.026126],[1173139200000, 0.025947],[1173225600000, 0.026122],[1173312000000, 0.026226],[1173398400000, 0.026226],[1173484800000, 0.026226],[1173571200000, 0.026226],[1173657600000, 0.026226],[1173744000000, 0.026587],[1173830400000, 0.026700],[1173916800000, 0.026494],[1174003200000, 0.026693],[1174089600000, 0.027014],[1174176000000, 0.027014],[1174262400000, 0.027014],[1174348800000, 0.027290],[1174435200000, 0.027248],[1174521600000, 0.027103],[1174608000000, 0.027409],[1174694400000, 0.027281],[1174780800000, 0.027281],[1174867200000, 0.027281],[1174953600000, 0.027139],[1175040000000, 0.027227],[1175126400000, 0.027054],[1175212800000, 0.027189],[1175299200000, 0.027141]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });