$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1488326400000,1.35944],[1488412800000,1.36199],[1488499200000,1.36018],[1488585600000,1.36186],[1488672000000,1.36186],[1488758400000,1.36186],[1488844800000,1.35941],[1488931200000,1.35733],[1489017600000,1.35733],[1489104000000,1.35533],[1489190400000,1.35039],[1489276800000,1.35039],[1489363200000,1.35039],[1489449600000,1.35599],[1489536000000,1.35902],[1489622400000,1.35813],[1489708800000,1.36371],[1489795200000,1.36513],[1489881600000,1.36513],[1489968000000,1.36513],[1490054400000,1.36597],[1490140800000,1.36632],[1490227200000,1.37242],[1490313600000,1.38529],[1490400000000,1.38642],[1490486400000,1.38642],[1490572800000,1.38642],[1490659200000,1.39035],[1490745600000,1.38955],[1490832000000,1.38867],[1490918400000,1.38483]], 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, 1.359443],[1488326400000, 1.359443],[1488412800000, 1.361994],[1488499200000, 1.360177],[1488585600000, 1.361859],[1488672000000, 1.361859],[1488758400000, 1.361859],[1488844800000, 1.359406],[1488931200000, 1.357332],[1489017600000, 1.357332],[1489104000000, 1.355332],[1489190400000, 1.350386],[1489276800000, 1.350386],[1489363200000, 1.350386],[1489449600000, 1.355990],[1489536000000, 1.359022],[1489622400000, 1.358129],[1489708800000, 1.363712],[1489795200000, 1.365128],[1489881600000, 1.365128],[1489968000000, 1.365128],[1490054400000, 1.365969],[1490140800000, 1.366320],[1490227200000, 1.372421],[1490313600000, 1.385293],[1490400000000, 1.386417],[1490486400000, 1.386417],[1490572800000, 1.386417],[1490659200000, 1.390351],[1490745600000, 1.389549],[1490832000000, 1.388666],[1490918400000, 1.384829]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });