$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1483228800000,2.97354],[1483315200000,2.97354],[1483401600000,2.97354],[1483488000000,2.97354],[1483574400000,2.92518],[1483660800000,2.92518],[1483747200000,2.9956],[1483833600000,2.9956],[1483920000000,2.9956],[1484006400000,2.9956],[1484092800000,3.00521],[1484179200000,2.97581],[1484265600000,3.06047],[1484352000000,null],[1484438400000,3.10916],[1484524800000,3.10916],[1484611200000,3.09693],[1484697600000,3.10625],[1484784000000,3.07542],[1484870400000,3.06618],[1484956800000,3.06732],[1485043200000,3.06732],[1485129600000,3.06732],[1485216000000,3.07916],[1485302400000,3.08142],[1485388800000,3.08223],[1485475200000,3.07606],[1485561600000,3.07253],[1485648000000,3.07253],[1485734400000,3.07253],[1485820800000,3.05409]], 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: [[1483228800000, 2.973542],[1483228800000, 2.973542],[1483315200000, 2.973542],[1483401600000, 2.973542],[1483488000000, 2.973542],[1483574400000, 2.925179],[1483660800000, 2.925179],[1483747200000, 2.995599],[1483833600000, 2.995599],[1483920000000, 2.995599],[1484006400000, 2.995599],[1484092800000, 3.005212],[1484179200000, 2.975808],[1484265600000, 3.060471],[1484438400000, 3.109161],[1484524800000, 3.109161],[1484611200000, 3.096931],[1484697600000, 3.106255],[1484784000000, 3.075416],[1484870400000, 3.066182],[1484956800000, 3.067324],[1485043200000, 3.067324],[1485129600000, 3.067324],[1485216000000, 3.079156],[1485302400000, 3.081418],[1485388800000, 3.082229],[1485475200000, 3.076061],[1485561600000, 3.072532],[1485648000000, 3.072532],[1485734400000, 3.072532],[1485820800000, 3.054088]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });