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