$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1172707200000,0.39451],[1172793600000,0.394408],[1172880000000,0.394488],[1172966400000,0.394488],[1173052800000,0.394488],[1173139200000,0.39483],[1173225600000,0.395167],[1173312000000,0.39574],[1173398400000,0.39574],[1173484800000,0.39574],[1173571200000,0.39574],[1173657600000,0.39574],[1173744000000,0.396044],[1173830400000,0.396657],[1173916800000,0.397178],[1174003200000,0.397945],[1174089600000,0.398381],[1174176000000,0.398381],[1174262400000,0.398381],[1174348800000,0.399295],[1174435200000,0.39994],[1174521600000,0.400257],[1174608000000,0.400727],[1174694400000,0.401058],[1174780800000,0.401058],[1174867200000,0.401058],[1174953600000,0.401907],[1175040000000,0.402381],[1175126400000,0.403068],[1175212800000,0.403174],[1175299200000,0.40331]], 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.394510],[1172707200000, 0.394510],[1172793600000, 0.394408],[1172880000000, 0.394488],[1172966400000, 0.394488],[1173052800000, 0.394488],[1173139200000, 0.394830],[1173225600000, 0.395167],[1173312000000, 0.395740],[1173398400000, 0.395740],[1173484800000, 0.395740],[1173571200000, 0.395740],[1173657600000, 0.395740],[1173744000000, 0.396044],[1173830400000, 0.396657],[1173916800000, 0.397178],[1174003200000, 0.397945],[1174089600000, 0.398381],[1174176000000, 0.398381],[1174262400000, 0.398381],[1174348800000, 0.399295],[1174435200000, 0.399940],[1174521600000, 0.400257],[1174608000000, 0.400727],[1174694400000, 0.401058],[1174780800000, 0.401058],[1174867200000, 0.401058],[1174953600000, 0.401907],[1175040000000, 0.402381],[1175126400000, 0.403068],[1175212800000, 0.403174],[1175299200000, 0.403310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });