$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1538352000000,32.7253],[1538438400000,32.7436],[1538524800000,32.6393],[1538611200000,32.704],[1538697600000,32.4069],[1538784000000,32.3144],[1538870400000,32.3144],[1538956800000,32.3144],[1539043200000,32.2393],[1539129600000,32.1111],[1539216000000,32.2033],[1539302400000,32.3921],[1539388800000,32.3241],[1539475200000,32.3241],[1539561600000,32.3241],[1539648000000,32.3241],[1539734400000,32.3625],[1539820800000,32.1882],[1539907200000,32.2562],[1539993600000,32.3248],[1540080000000,32.3248],[1540166400000,32.3248],[1540252800000,32.2756],[1540339200000,32.3099],[1540425600000,32.1319],[1540512000000,32.3479],[1540598400000,32.0678],[1540684800000,32.0678],[1540771200000,32.0678],[1540857600000,32.0973],[1540944000000,32.0286]], 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: [[1538352000000, 32.725272],[1538352000000, 32.725272],[1538438400000, 32.743633],[1538524800000, 32.639286],[1538611200000, 32.704000],[1538697600000, 32.406948],[1538784000000, 32.314389],[1538870400000, 32.314389],[1538956800000, 32.314389],[1539043200000, 32.239315],[1539129600000, 32.111127],[1539216000000, 32.203332],[1539302400000, 32.392081],[1539388800000, 32.324059],[1539475200000, 32.324059],[1539561600000, 32.324059],[1539648000000, 32.324059],[1539734400000, 32.362514],[1539820800000, 32.188179],[1539907200000, 32.256162],[1539993600000, 32.324755],[1540080000000, 32.324755],[1540166400000, 32.324755],[1540252800000, 32.275618],[1540339200000, 32.309884],[1540425600000, 32.131896],[1540512000000, 32.347900],[1540598400000, 32.067759],[1540684800000, 32.067759],[1540771200000, 32.067759],[1540857600000, 32.097295],[1540944000000, 32.028598]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });