$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1488326400000,20.5845],[1488412800000,20.3855],[1488499200000,20.2458],[1488585600000,20.2327],[1488672000000,20.2327],[1488758400000,20.2327],[1488844800000,20.1798],[1488931200000,20.0918],[1489017600000,20.0918],[1489104000000,19.893],[1489190400000,19.854],[1489276800000,19.854],[1489363200000,19.854],[1489449600000,19.9844],[1489536000000,19.9484],[1489622400000,19.9795],[1489708800000,20.2687],[1489795200000,20.2102],[1489881600000,20.2102],[1489968000000,20.2102],[1490054400000,20.1336],[1490140800000,20.2136],[1490227200000,20.122],[1490313600000,20.2853],[1490400000000,20.2852],[1490486400000,20.2852],[1490572800000,20.2852],[1490659200000,20.3409],[1490745600000,20.2463],[1490832000000,20.2105],[1490918400000,20.2264]], 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: [[1488326400000, 20.584516],[1488326400000, 20.584516],[1488412800000, 20.385479],[1488499200000, 20.245795],[1488585600000, 20.232672],[1488672000000, 20.232672],[1488758400000, 20.232672],[1488844800000, 20.179780],[1488931200000, 20.091842],[1489017600000, 20.091842],[1489104000000, 19.893006],[1489190400000, 19.853963],[1489276800000, 19.853963],[1489363200000, 19.853963],[1489449600000, 19.984445],[1489536000000, 19.948359],[1489622400000, 19.979534],[1489708800000, 20.268737],[1489795200000, 20.210182],[1489881600000, 20.210182],[1489968000000, 20.210182],[1490054400000, 20.133597],[1490140800000, 20.213614],[1490227200000, 20.121967],[1490313600000, 20.285274],[1490400000000, 20.285220],[1490486400000, 20.285220],[1490572800000, 20.285220],[1490659200000, 20.340876],[1490745600000, 20.246343],[1490832000000, 20.210506],[1490918400000, 20.226392]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });