$(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: [[1451606400000,0.32931],[1451692800000,0.32931],[1451779200000,0.32931],[1451865600000,0.32931],[1451952000000,0.32931],[1452038400000,0.32612],[1452124800000,0.32226],[1452211200000,0.32226],[1452297600000,0.32226],[1452384000000,0.32226],[1452470400000,0.32226],[1452556800000,0.30947],[1452643200000,0.30373],[1452729600000,0.30934],[1452816000000,0.31299],[1452902400000,0.31591],[1452988800000,0.31846],[1453075200000,0.31846],[1453161600000,0.31318],[1453248000000,0.31654],[1453334400000,0.31035],[1453420800000,0.3086],[1453507200000,0.3077],[1453593600000,0.3077],[1453680000000,0.3077],[1453766400000,0.31916],[1453852800000,0.30363],[1453939200000,0.31483],[1454025600000,0.3251],[1454112000000,0.33995],[1454198400000,0.33995]], 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: [[1451606400000, 0.329310],[1451606400000, 0.329310],[1451692800000, 0.329310],[1451779200000, 0.329310],[1451865600000, 0.329310],[1451952000000, 0.329310],[1452038400000, 0.326120],[1452124800000, 0.322260],[1452211200000, 0.322260],[1452297600000, 0.322260],[1452384000000, 0.322260],[1452470400000, 0.322260],[1452556800000, 0.309470],[1452643200000, 0.303730],[1452729600000, 0.309340],[1452816000000, 0.312990],[1452902400000, 0.315910],[1452988800000, 0.318460],[1453075200000, 0.318460],[1453161600000, 0.313180],[1453248000000, 0.316540],[1453334400000, 0.310350],[1453420800000, 0.308600],[1453507200000, 0.307700],[1453593600000, 0.307700],[1453680000000, 0.307700],[1453766400000, 0.319160],[1453852800000, 0.303630],[1453939200000, 0.314830],[1454025600000, 0.325100],[1454112000000, 0.339950],[1454198400000, 0.339950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });