$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1168041600000,4.29779],[1168128000000,4.29779],[1168214400000,4.29779],[1168300800000,4.29779],[1168387200000,4.28922],[1168473600000,4.28661],[1168560000000,4.28669],[1168646400000,4.30164],[1168732800000,4.30164],[1168819200000,4.30164],[1168905600000,4.32566],[1168992000000,4.32423],[1169078400000,4.29846],[1169164800000,4.29119],[1169251200000,4.30824],[1169337600000,4.30824],[1169424000000,4.30824],[1169510400000,4.29697],[1169596800000,4.27638],[1169683200000,4.28242],[1169769600000,4.28723],[1169856000000,4.27073],[1169942400000,4.27073],[1170028800000,4.27073],[1170115200000,4.2631],[1170201600000,4.26989]], 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: [[1168041600000, 4.297788],[1168041600000, 4.297788],[1168128000000, 4.297788],[1168214400000, 4.297788],[1168300800000, 4.297788],[1168387200000, 4.289222],[1168473600000, 4.286609],[1168560000000, 4.286689],[1168646400000, 4.301642],[1168732800000, 4.301642],[1168819200000, 4.301642],[1168905600000, 4.325659],[1168992000000, 4.324232],[1169078400000, 4.298460],[1169164800000, 4.291188],[1169251200000, 4.308243],[1169337600000, 4.308243],[1169424000000, 4.308243],[1169510400000, 4.296968],[1169596800000, 4.276382],[1169683200000, 4.282424],[1169769600000, 4.287231],[1169856000000, 4.270734],[1169942400000, 4.270734],[1170028800000, 4.270734],[1170115200000, 4.263103],[1170201600000, 4.269887]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });