$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1443657600000,21.2956],[1443744000000,21.1533],[1443830400000,21.1474],[1443916800000,21.1474],[1444003200000,21.1474],[1444089600000,21.2156],[1444176000000,21.264],[1444262400000,21.2702],[1444348800000,21.2993],[1444435200000,21.4962],[1444521600000,21.4962],[1444608000000,21.4962],[1444694400000,21.8177],[1444780800000,21.9328],[1444867200000,21.9328],[1444953600000,21.6906],[1445040000000,21.2977],[1445126400000,21.2977],[1445212800000,21.2977],[1445299200000,21.6175],[1445385600000,21.9889],[1445472000000,22.6093],[1445558400000,22.2806],[1445644800000,22.5747],[1445731200000,22.5747],[1445817600000,22.5747],[1445904000000,22.9059],[1445990400000,22.8633],[1446076800000,22.8865],[1446163200000,22.904],[1446249600000,22.9937]], 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: [[1443657600000, 21.295636],[1443657600000, 21.295636],[1443744000000, 21.153307],[1443830400000, 21.147443],[1443916800000, 21.147443],[1444003200000, 21.147443],[1444089600000, 21.215640],[1444176000000, 21.264049],[1444262400000, 21.270167],[1444348800000, 21.299291],[1444435200000, 21.496208],[1444521600000, 21.496208],[1444608000000, 21.496208],[1444694400000, 21.817734],[1444780800000, 21.932784],[1444867200000, 21.932784],[1444953600000, 21.690618],[1445040000000, 21.297699],[1445126400000, 21.297699],[1445212800000, 21.297699],[1445299200000, 21.617536],[1445385600000, 21.988927],[1445472000000, 22.609278],[1445558400000, 22.280585],[1445644800000, 22.574677],[1445731200000, 22.574677],[1445817600000, 22.574677],[1445904000000, 22.905896],[1445990400000, 22.863258],[1446076800000, 22.886491],[1446163200000, 22.903985],[1446249600000, 22.993727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });