$(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: [[1475280000000,19.706],[1475366400000,19.706],[1475452800000,19.706],[1475539200000,19.8098],[1475625600000,19.6416],[1475712000000,19.5968],[1475798400000,19.6065],[1475884800000,19.4716],[1475971200000,19.4716],[1476057600000,19.4716],[1476144000000,19.4882],[1476230400000,19.5462],[1476316800000,19.482],[1476403200000,19.4719],[1476489600000,19.4719],[1476576000000,19.4719],[1476662400000,19.4719],[1476748800000,19.6397],[1476835200000,19.6158],[1476921600000,19.6425],[1477008000000,19.5177],[1477094400000,19.399],[1477180800000,19.399],[1477267200000,19.399],[1477353600000,19.1964],[1477440000000,19.2204],[1477526400000,19.1396],[1477612800000,19.1028],[1477699200000,19.0431],[1477785600000,19.0431],[1477872000000,19.0431]], 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: [[1475280000000, 19.706036],[1475280000000, 19.706036],[1475366400000, 19.706036],[1475452800000, 19.706036],[1475539200000, 19.809830],[1475625600000, 19.641610],[1475712000000, 19.596802],[1475798400000, 19.606451],[1475884800000, 19.471554],[1475971200000, 19.471554],[1476057600000, 19.471554],[1476144000000, 19.488249],[1476230400000, 19.546245],[1476316800000, 19.481953],[1476403200000, 19.471870],[1476489600000, 19.471870],[1476576000000, 19.471870],[1476662400000, 19.471870],[1476748800000, 19.639742],[1476835200000, 19.615763],[1476921600000, 19.642509],[1477008000000, 19.517652],[1477094400000, 19.399018],[1477180800000, 19.399018],[1477267200000, 19.399018],[1477353600000, 19.196430],[1477440000000, 19.220352],[1477526400000, 19.139600],[1477612800000, 19.102825],[1477699200000, 19.043068],[1477785600000, 19.043068],[1477872000000, 19.043068]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });