$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1214870400000,2.21155],[1214956800000,2.21553],[1215043200000,2.21997],[1215129600000,2.23121],[1215216000000,2.19674],[1215302400000,2.19674],[1215388800000,2.19674],[1215475200000,2.19394],[1215561600000,2.19926],[1215648000000,2.20364],[1215734400000,2.20266],[1215820800000,2.22065],[1215907200000,2.22065],[1215993600000,2.22065],[1216080000000,2.22197],[1216166400000,2.24146],[1216252800000,2.22749],[1216339200000,2.22179],[1216425600000,2.21703],[1216512000000,2.21703],[1216598400000,2.21703],[1216684800000,2.22291],[1216771200000,2.23146],[1216857600000,2.20683],[1216944000000,2.19881],[1217030400000,2.20681],[1217116800000,2.20681],[1217203200000,2.20681],[1217289600000,2.20881],[1217376000000,2.20365],[1217462400000,2.18751]], 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, 2.211552],[1214870400000, 2.211552],[1214956800000, 2.215527],[1215043200000, 2.219972],[1215129600000, 2.231206],[1215216000000, 2.196745],[1215302400000, 2.196745],[1215388800000, 2.196745],[1215475200000, 2.193941],[1215561600000, 2.199260],[1215648000000, 2.203641],[1215734400000, 2.202659],[1215820800000, 2.220651],[1215907200000, 2.220651],[1215993600000, 2.220651],[1216080000000, 2.221967],[1216166400000, 2.241462],[1216252800000, 2.227486],[1216339200000, 2.221789],[1216425600000, 2.217025],[1216512000000, 2.217025],[1216598400000, 2.217025],[1216684800000, 2.222912],[1216771200000, 2.231463],[1216857600000, 2.206831],[1216944000000, 2.198812],[1217030400000, 2.206807],[1217116800000, 2.206807],[1217203200000, 2.206807],[1217289600000, 2.208809],[1217376000000, 2.203649],[1217462400000, 2.187508]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });