$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1214870400000,1.02387],[1214956800000,1.0258],[1215043200000,1.02778],[1215129600000,1.03304],[1215216000000,1.01714],[1215302400000,1.01714],[1215388800000,1.01714],[1215475200000,1.01583],[1215561600000,1.01824],[1215648000000,1.01998],[1215734400000,1.01948],[1215820800000,1.0277],[1215907200000,1.0277],[1215993600000,1.0277],[1216080000000,1.02832],[1216166400000,1.03748],[1216252800000,1.03115],[1216339200000,1.0285],[1216425600000,1.02615],[1216512000000,1.02615],[1216598400000,1.02615],[1216684800000,1.02866],[1216771200000,1.03268],[1216857600000,1.02117],[1216944000000,1.01747],[1217030400000,1.02114],[1217116800000,1.02114],[1217203200000,1.02114],[1217289600000,1.0221],[1217376000000,1.0197],[1217462400000,1.01221]], 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: [[1214870400000, 1.023873],[1214870400000, 1.023873],[1214956800000, 1.025796],[1215043200000, 1.027785],[1215129600000, 1.033042],[1215216000000, 1.017141],[1215302400000, 1.017141],[1215388800000, 1.017141],[1215475200000, 1.015829],[1215561600000, 1.018237],[1215648000000, 1.019978],[1215734400000, 1.019483],[1215820800000, 1.027700],[1215907200000, 1.027700],[1215993600000, 1.027700],[1216080000000, 1.028323],[1216166400000, 1.037484],[1216252800000, 1.031153],[1216339200000, 1.028502],[1216425600000, 1.026146],[1216512000000, 1.026146],[1216598400000, 1.026146],[1216684800000, 1.028664],[1216771200000, 1.032676],[1216857600000, 1.021167],[1216944000000, 1.017470],[1217030400000, 1.021142],[1217116800000, 1.021142],[1217203200000, 1.021142],[1217289600000, 1.022096],[1217376000000, 1.019695],[1217462400000, 1.012212]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });