$(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: [[1044057600000,0.16752],[1044144000000,0.16752],[1044230400000,0.16752],[1044316800000,0.16743],[1044403200000,0.16752],[1044489600000,0.16752],[1044576000000,0.16753],[1044662400000,0.16753],[1044748800000,0.16753],[1044835200000,0.16753],[1044921600000,0.16761],[1045008000000,0.16781],[1045094400000,0.16851],[1045180800000,0.16859],[1045267200000,0.16859],[1045353600000,0.16859],[1045440000000,0.16859],[1045526400000,0.16908],[1045612800000,0.16891],[1045699200000,0.16891],[1045785600000,0.16907],[1045872000000,0.16907],[1045958400000,0.16907],[1046044800000,0.16907],[1046131200000,0.16888],[1046217600000,0.16888],[1046304000000,0.16878],[1046390400000,0.16896]], 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: [[1044057600000, 0.167520],[1044057600000, 0.167520],[1044144000000, 0.167520],[1044230400000, 0.167520],[1044316800000, 0.167430],[1044403200000, 0.167520],[1044489600000, 0.167520],[1044576000000, 0.167530],[1044662400000, 0.167530],[1044748800000, 0.167530],[1044835200000, 0.167530],[1044921600000, 0.167610],[1045008000000, 0.167810],[1045094400000, 0.168510],[1045180800000, 0.168590],[1045267200000, 0.168590],[1045353600000, 0.168590],[1045440000000, 0.168590],[1045526400000, 0.169080],[1045612800000, 0.168910],[1045699200000, 0.168910],[1045785600000, 0.169070],[1045872000000, 0.169070],[1045958400000, 0.169070],[1046044800000, 0.169070],[1046131200000, 0.168880],[1046217600000, 0.168880],[1046304000000, 0.168780],[1046390400000, 0.168960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });