$(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: [[1406851200000,12.0972],[1406937600000,11.9633],[1407024000000,11.9633],[1407110400000,11.9633],[1407196800000,12.1831],[1407283200000,12.2976],[1407369600000,12.3549],[1407456000000,12.4585],[1407542400000,12.6068],[1407628800000,12.6068],[1407715200000,12.6068],[1407801600000,12.826],[1407888000000,13.1393],[1407974400000,13.1107],[1408060800000,13.0917],[1408147200000,13.1355],[1408233600000,13.1355],[1408320000000,13.1355],[1408406400000,13.0733],[1408492800000,12.9526],[1408579200000,13.2231],[1408665600000,13.1128],[1408752000000,13.3654],[1408838400000,13.3654],[1408924800000,13.3654],[1409011200000,13.3654],[1409097600000,13.6594],[1409184000000,13.891],[1409270400000,13.4375],[1409356800000,13.6058]], 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: [[1406851200000, 12.097248],[1406851200000, 12.097248],[1406937600000, 11.963280],[1407024000000, 11.963280],[1407110400000, 11.963280],[1407196800000, 12.183059],[1407283200000, 12.297591],[1407369600000, 12.354879],[1407456000000, 12.458546],[1407542400000, 12.606756],[1407628800000, 12.606756],[1407715200000, 12.606756],[1407801600000, 12.825978],[1407888000000, 13.139331],[1407974400000, 13.110661],[1408060800000, 13.091686],[1408147200000, 13.135491],[1408233600000, 13.135491],[1408320000000, 13.135491],[1408406400000, 13.073311],[1408492800000, 12.952576],[1408579200000, 13.223077],[1408665600000, 13.112790],[1408752000000, 13.365434],[1408838400000, 13.365434],[1408924800000, 13.365434],[1409011200000, 13.365434],[1409097600000, 13.659408],[1409184000000, 13.890974],[1409270400000, 13.437484],[1409356800000, 13.605777]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });