$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1564617600000,17.2492],[1564704000000,17.3404],[1564790400000,17.331],[1564876800000,17.331],[1564963200000,17.331],[1565049600000,17.4194],[1565136000000,17.385],[1565222400000,17.1279],[1565308800000,17.1915],[1565395200000,17.078],[1565481600000,17.078],[1565568000000,17.078],[1565654400000,16.9766],[1565740800000,17.0107],[1565827200000,17.039],[1565913600000,17.1717],[1566000000000,17.0639],[1566086400000,17.0639],[1566172800000,17.0639],[1566259200000,17.0692],[1566345600000,17.0279],[1566432000000,17.131],[1566518400000,16.9443],[1566604800000,16.9139],[1566691200000,16.9139],[1566777600000,16.9139],[1566864000000,16.9139],[1566950400000,17.026],[1567036800000,17.0126],[1567123200000,17.0328],[1567209600000,16.9222]], 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: [[1564617600000, 17.249239],[1564617600000, 17.249239],[1564704000000, 17.340382],[1564790400000, 17.331000],[1564876800000, 17.331000],[1564963200000, 17.331000],[1565049600000, 17.419448],[1565136000000, 17.385012],[1565222400000, 17.127950],[1565308800000, 17.191547],[1565395200000, 17.077980],[1565481600000, 17.077980],[1565568000000, 17.077980],[1565654400000, 16.976557],[1565740800000, 17.010682],[1565827200000, 17.038987],[1565913600000, 17.171658],[1566000000000, 17.063859],[1566086400000, 17.063859],[1566172800000, 17.063859],[1566259200000, 17.069224],[1566345600000, 17.027851],[1566432000000, 17.131050],[1566518400000, 16.944335],[1566604800000, 16.913935],[1566691200000, 16.913935],[1566777600000, 16.913935],[1566864000000, 16.913935],[1566950400000, 17.026041],[1567036800000, 17.012588],[1567123200000, 17.032802],[1567209600000, 16.922211]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });