$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1359676800000,10.19],[1359763200000,10.19],[1359849600000,10.19],[1359936000000,10.19],[1360022400000,10.19],[1360108800000,10.1874],[1360195200000,10.1861],[1360281600000,10.1848],[1360368000000,10.1848],[1360454400000,10.1848],[1360540800000,10.1848],[1360627200000,10.1848],[1360713600000,10.1848],[1360800000000,10.1848],[1360886400000,10.1861],[1360972800000,10.1861],[1361059200000,10.1861],[1361145600000,10.1861],[1361232000000,10.1861],[1361318400000,10.1861],[1361404800000,10.1848],[1361491200000,10.1861],[1361577600000,10.1861],[1361664000000,10.1861],[1361750400000,10.1861],[1361836800000,10.1861],[1361923200000,10.1835],[1362009600000,10.1835]], 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: [[1359676800000, 10.189954],[1359676800000, 10.189954],[1359763200000, 10.189954],[1359849600000, 10.189954],[1359936000000, 10.189954],[1360022400000, 10.189954],[1360108800000, 10.187357],[1360195200000, 10.186058],[1360281600000, 10.184760],[1360368000000, 10.184760],[1360454400000, 10.184760],[1360540800000, 10.184760],[1360627200000, 10.184760],[1360713600000, 10.184760],[1360800000000, 10.184760],[1360886400000, 10.186058],[1360972800000, 10.186058],[1361059200000, 10.186058],[1361145600000, 10.186058],[1361232000000, 10.186058],[1361318400000, 10.186058],[1361404800000, 10.184760],[1361491200000, 10.186058],[1361577600000, 10.186058],[1361664000000, 10.186058],[1361750400000, 10.186058],[1361836800000, 10.186058],[1361923200000, 10.183463],[1362009600000, 10.183463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });