$(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: [[1264982400000,3.23546],[1265068800000,3.2233],[1265155200000,3.22931],[1265241600000,3.24052],[1265328000000,3.20878],[1265414400000,3.17231],[1265500800000,3.17231],[1265587200000,3.17231],[1265673600000,3.17137],[1265760000000,3.19184],[1265846400000,3.18748],[1265932800000,3.18238],[1266019200000,3.14556],[1266105600000,3.14556],[1266192000000,3.14556],[1266278400000,3.15348],[1266364800000,3.16337],[1266451200000,3.18121],[1266537600000,3.1433],[1266624000000,3.13151],[1266710400000,3.13151],[1266796800000,3.13151],[1266883200000,3.15326],[1266969600000,3.14181],[1267056000000,3.13486],[1267142400000,3.12144],[1267228800000,3.14018],[1267315200000,3.14018]], 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: [[1264982400000, 3.235462],[1264982400000, 3.235462],[1265068800000, 3.223305],[1265155200000, 3.229309],[1265241600000, 3.240523],[1265328000000, 3.208776],[1265414400000, 3.172309],[1265500800000, 3.172309],[1265587200000, 3.172309],[1265673600000, 3.171374],[1265760000000, 3.191843],[1265846400000, 3.187483],[1265932800000, 3.182379],[1266019200000, 3.145561],[1266105600000, 3.145561],[1266192000000, 3.145561],[1266278400000, 3.153476],[1266364800000, 3.163368],[1266451200000, 3.181214],[1266537600000, 3.143302],[1266624000000, 3.131515],[1266710400000, 3.131515],[1266796800000, 3.131515],[1266883200000, 3.153262],[1266969600000, 3.141805],[1267056000000, 3.134862],[1267142400000, 3.121441],[1267228800000, 3.140185],[1267315200000, 3.140185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });