$(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: [[1193875200000,0.20468],[1193961600000,0.20458],[1194048000000,0.20472],[1194134400000,0.20472],[1194220800000,0.20472],[1194307200000,0.20472],[1194393600000,0.20509],[1194480000000,0.20602],[1194566400000,0.20627],[1194652800000,0.20658],[1194739200000,0.20658],[1194825600000,0.20658],[1194912000000,0.20617],[1194998400000,0.20588],[1195084800000,0.20619],[1195171200000,0.20644],[1195257600000,0.20599],[1195344000000,0.20599],[1195430400000,0.20599],[1195516800000,0.20614],[1195603200000,0.20669],[1195689600000,0.20749],[1195776000000,0.20767],[1195862400000,0.20812],[1195948800000,0.20812],[1196035200000,0.20812],[1196121600000,0.20773],[1196208000000,0.20772],[1196294400000,0.20729],[1196380800000,0.20739]], 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: [[1193875200000, 0.204680],[1193875200000, 0.204680],[1193961600000, 0.204580],[1194048000000, 0.204720],[1194134400000, 0.204720],[1194220800000, 0.204720],[1194307200000, 0.204720],[1194393600000, 0.205090],[1194480000000, 0.206020],[1194566400000, 0.206270],[1194652800000, 0.206580],[1194739200000, 0.206580],[1194825600000, 0.206580],[1194912000000, 0.206170],[1194998400000, 0.205880],[1195084800000, 0.206190],[1195171200000, 0.206440],[1195257600000, 0.205990],[1195344000000, 0.205990],[1195430400000, 0.205990],[1195516800000, 0.206140],[1195603200000, 0.206690],[1195689600000, 0.207490],[1195776000000, 0.207670],[1195862400000, 0.208120],[1195948800000, 0.208120],[1196035200000, 0.208120],[1196121600000, 0.207730],[1196208000000, 0.207720],[1196294400000, 0.207290],[1196380800000, 0.207390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });