$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1485907200000,27.3004],[1485993600000,27.2767],[1486080000000,27.2849],[1486166400000,27.1944],[1486252800000,27.1944],[1486339200000,27.1944],[1486425600000,27.37],[1486512000000,27.075],[1486598400000,26.9833],[1486684800000,27.0758],[1486771200000,27.1048],[1486857600000,27.1048],[1486944000000,27.1048],[1487030400000,27.0531],[1487116800000,27.1385],[1487203200000,26.7478],[1487289600000,27.0014],[1487376000000,27.0592],[1487462400000,27.0592],[1487548800000,27.0592],[1487635200000,26.939],[1487721600000,26.7833],[1487808000000,26.6459],[1487894400000,26.6792],[1487980800000,26.8752],[1488067200000,26.8752],[1488153600000,26.8752],[1488240000000,26.8583]], 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: [[1485907200000, 27.300375],[1485907200000, 27.300375],[1485993600000, 27.276661],[1486080000000, 27.284871],[1486166400000, 27.194439],[1486252800000, 27.194439],[1486339200000, 27.194439],[1486425600000, 27.370046],[1486512000000, 27.075011],[1486598400000, 26.983341],[1486684800000, 27.075790],[1486771200000, 27.104830],[1486857600000, 27.104830],[1486944000000, 27.104830],[1487030400000, 27.053120],[1487116800000, 27.138493],[1487203200000, 26.747792],[1487289600000, 27.001358],[1487376000000, 27.059168],[1487462400000, 27.059168],[1487548800000, 27.059168],[1487635200000, 26.939021],[1487721600000, 26.783269],[1487808000000, 26.645911],[1487894400000, 26.679186],[1487980800000, 26.875239],[1488067200000, 26.875239],[1488153600000, 26.875239],[1488240000000, 26.858329]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });