$(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: [[1159660800000,4.52271],[1159747200000,4.52271],[1159833600000,4.50297],[1159920000000,4.51508],[1160006400000,4.47963],[1160092800000,4.48579],[1160179200000,4.49299],[1160265600000,4.49299],[1160352000000,4.49299],[1160438400000,4.49662],[1160524800000,4.47343],[1160611200000,4.4485],[1160697600000,4.4405],[1160784000000,4.44879],[1160870400000,4.44879],[1160956800000,4.44879],[1161043200000,4.44106],[1161129600000,4.44394],[1161216000000,4.43386],[1161302400000,4.44645],[1161388800000,4.50134],[1161475200000,4.50134],[1161561600000,4.50134],[1161648000000,4.47858],[1161734400000,4.46629],[1161820800000,4.47671],[1161907200000,4.48121],[1161993600000,4.4909],[1162080000000,4.4909],[1162166400000,4.4909],[1162252800000,4.50515]], 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: [[1159660800000, 4.522708],[1159660800000, 4.522708],[1159747200000, 4.522708],[1159833600000, 4.502970],[1159920000000, 4.515081],[1160006400000, 4.479628],[1160092800000, 4.485794],[1160179200000, 4.492989],[1160265600000, 4.492989],[1160352000000, 4.492989],[1160438400000, 4.496619],[1160524800000, 4.473428],[1160611200000, 4.448497],[1160697600000, 4.440499],[1160784000000, 4.448793],[1160870400000, 4.448793],[1160956800000, 4.448793],[1161043200000, 4.441062],[1161129600000, 4.443943],[1161216000000, 4.433862],[1161302400000, 4.446450],[1161388800000, 4.501335],[1161475200000, 4.501335],[1161561600000, 4.501335],[1161648000000, 4.478585],[1161734400000, 4.466294],[1161820800000, 4.476711],[1161907200000, 4.481215],[1161993600000, 4.490895],[1162080000000, 4.490895],[1162166400000, 4.490895],[1162252800000, 4.505146]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });