$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1412121600000,0.00122],[1412208000000,0.00122],[1412294400000,0.00122],[1412380800000,0.00122],[1412467200000,0.00122],[1412553600000,0.00122],[1412640000000,0.00122],[1412726400000,0.00122],[1412812800000,0.00122],[1412899200000,0.00122],[1412985600000,0.00122],[1413072000000,0.00122],[1413158400000,0.00122],[1413244800000,0.00122],[1413331200000,0.00122],[1413417600000,0.00122],[1413504000000,0.00121],[1413590400000,0.00121],[1413676800000,0.00121],[1413763200000,0.00121],[1413849600000,0.00121],[1413936000000,0.00121],[1414022400000,0.00121],[1414108800000,0.00121],[1414195200000,0.00121],[1414281600000,0.00121],[1414368000000,0.00121],[1414454400000,0.00121],[1414540800000,0.00121],[1414627200000,0.00121],[1414713600000,0.00121]], 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: [[1412121600000, 0.001220],[1412121600000, 0.001220],[1412208000000, 0.001220],[1412294400000, 0.001220],[1412380800000, 0.001220],[1412467200000, 0.001220],[1412553600000, 0.001220],[1412640000000, 0.001220],[1412726400000, 0.001220],[1412812800000, 0.001220],[1412899200000, 0.001220],[1412985600000, 0.001220],[1413072000000, 0.001220],[1413158400000, 0.001220],[1413244800000, 0.001220],[1413331200000, 0.001220],[1413417600000, 0.001220],[1413504000000, 0.001210],[1413590400000, 0.001210],[1413676800000, 0.001210],[1413763200000, 0.001210],[1413849600000, 0.001210],[1413936000000, 0.001210],[1414022400000, 0.001210],[1414108800000, 0.001210],[1414195200000, 0.001210],[1414281600000, 0.001210],[1414368000000, 0.001210],[1414454400000, 0.001210],[1414540800000, 0.001210],[1414627200000, 0.001210],[1414713600000, 0.001210]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });