$(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: [[1425168000000,29.2411],[1425254400000,29.2411],[1425340800000,28.3833],[1425427200000,25.9849],[1425513600000,24.7278],[1425600000000,24.019],[1425686400000,23.6933],[1425772800000,23.6933],[1425859200000,23.6933],[1425945600000,23.6933],[1426032000000,22.0793],[1426118400000,21.6234],[1426204800000,21.3982],[1426291200000,21.5693],[1426377600000,21.5693],[1426464000000,21.5693],[1426550400000,21.615],[1426636800000,22.1253],[1426723200000,23.2422],[1426809600000,23.317],[1426896000000,23.3701],[1426982400000,23.3701],[1427068800000,23.3701],[1427155200000,23.6413],[1427241600000,24.0618],[1427328000000,24.5877],[1427414400000,24.5466],[1427500800000,24.5769],[1427587200000,24.5769],[1427673600000,24.5769],[1427760000000,24.293]], 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: [[1425168000000, 29.241064],[1425168000000, 29.241064],[1425254400000, 29.241064],[1425340800000, 28.383340],[1425427200000, 25.984850],[1425513600000, 24.727782],[1425600000000, 24.019023],[1425686400000, 23.693315],[1425772800000, 23.693315],[1425859200000, 23.693315],[1425945600000, 23.693315],[1426032000000, 22.079301],[1426118400000, 21.623416],[1426204800000, 21.398166],[1426291200000, 21.569315],[1426377600000, 21.569315],[1426464000000, 21.569315],[1426550400000, 21.614995],[1426636800000, 22.125310],[1426723200000, 23.242151],[1426809600000, 23.316991],[1426896000000, 23.370097],[1426982400000, 23.370097],[1427068800000, 23.370097],[1427155200000, 23.641303],[1427241600000, 24.061827],[1427328000000, 24.587683],[1427414400000, 24.546570],[1427500800000, 24.576911],[1427587200000, 24.576911],[1427673600000, 24.576911],[1427760000000, 24.292968]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });