$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1483228800000,0.45113],[1483315200000,0.45113],[1483401600000,0.45113],[1483488000000,0.45113],[1483574400000,0.44005],[1483660800000,0.44005],[1483747200000,0.44547],[1483833600000,0.44547],[1483920000000,0.44547],[1484006400000,0.44547],[1484092800000,0.45347],[1484179200000,0.45067],[1484265600000,0.45803],[1484352000000,null],[1484438400000,0.46605],[1484524800000,0.46605],[1484611200000,0.46507],[1484697600000,0.46514],[1484784000000,0.46452],[1484870400000,0.46236],[1484956800000,0.45967],[1485043200000,0.45967],[1485129600000,0.45967],[1485216000000,0.45934],[1485302400000,0.45987],[1485388800000,0.45999],[1485475200000,0.45632],[1485561600000,0.4508],[1485648000000,0.4508],[1485734400000,0.4508],[1485820800000,0.45077]], 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, 0.451130],[1483228800000, 0.451130],[1483315200000, 0.451130],[1483401600000, 0.451130],[1483488000000, 0.451130],[1483574400000, 0.440050],[1483660800000, 0.440050],[1483747200000, 0.445470],[1483833600000, 0.445470],[1483920000000, 0.445470],[1484006400000, 0.445470],[1484092800000, 0.453470],[1484179200000, 0.450670],[1484265600000, 0.458030],[1484438400000, 0.466050],[1484524800000, 0.466050],[1484611200000, 0.465070],[1484697600000, 0.465140],[1484784000000, 0.464520],[1484870400000, 0.462360],[1484956800000, 0.459670],[1485043200000, 0.459670],[1485129600000, 0.459670],[1485216000000, 0.459340],[1485302400000, 0.459870],[1485388800000, 0.459990],[1485475200000, 0.456320],[1485561600000, 0.450800],[1485648000000, 0.450800],[1485734400000, 0.450800],[1485820800000, 0.450770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });