$(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: [[1414800000000,0.00121],[1414886400000,0.00121],[1414972800000,0.00121],[1415059200000,0.00121],[1415145600000,0.00121],[1415232000000,0.00126],[1415318400000,0.0013],[1415404800000,0.00135],[1415491200000,0.00135],[1415577600000,0.00135],[1415664000000,0.00138],[1415750400000,0.00147],[1415836800000,0.00147],[1415923200000,0.00145],[1416009600000,0.00143],[1416096000000,0.00143],[1416182400000,0.00143],[1416268800000,null],[1416355200000,0.00142],[1416441600000,0.00141],[1416528000000,0.00141],[1416614400000,0.0014],[1416700800000,0.0014],[1416787200000,0.0014],[1416873600000,0.0014],[1416960000000,0.00139],[1417046400000,0.00139],[1417132800000,0.00139],[1417219200000,0.00139],[1417305600000,0.00139]], 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: [[1414800000000, 0.001210],[1414800000000, 0.001210],[1414886400000, 0.001210],[1414972800000, 0.001210],[1415059200000, 0.001210],[1415145600000, 0.001210],[1415232000000, 0.001260],[1415318400000, 0.001300],[1415404800000, 0.001350],[1415491200000, 0.001350],[1415577600000, 0.001350],[1415664000000, 0.001380],[1415750400000, 0.001470],[1415836800000, 0.001470],[1415923200000, 0.001450],[1416009600000, 0.001430],[1416096000000, 0.001430],[1416182400000, 0.001430],[1416355200000, 0.001420],[1416441600000, 0.001410],[1416528000000, 0.001410],[1416614400000, 0.001400],[1416700800000, 0.001400],[1416787200000, 0.001400],[1416873600000, 0.001400],[1416960000000, 0.001390],[1417046400000, 0.001390],[1417132800000, 0.001390],[1417219200000, 0.001390],[1417305600000, 0.001390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });