$(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: [[1438387200000,0.00139],[1438473600000,0.00139],[1438560000000,0.00139],[1438646400000,0.00142],[1438732800000,0.0014],[1438819200000,0.00139],[1438905600000,0.00137],[1438992000000,0.00134],[1439078400000,0.00134],[1439164800000,0.00134],[1439251200000,0.00135],[1439337600000,0.00136],[1439424000000,0.00134],[1439510400000,0.00134],[1439596800000,0.00136],[1439683200000,0.00136],[1439769600000,0.00136],[1439856000000,0.00137],[1439942400000,0.00136],[1440028800000,0.00134],[1440115200000,0.00134],[1440201600000,0.00132],[1440288000000,0.00132],[1440374400000,0.00132],[1440460800000,null],[1440547200000,0.00127],[1440633600000,0.00121],[1440720000000,0.00121],[1440806400000,0.00121],[1440892800000,0.00121],[1440979200000,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: [[1438387200000, 0.001390],[1438387200000, 0.001390],[1438473600000, 0.001390],[1438560000000, 0.001390],[1438646400000, 0.001420],[1438732800000, 0.001400],[1438819200000, 0.001390],[1438905600000, 0.001370],[1438992000000, 0.001340],[1439078400000, 0.001340],[1439164800000, 0.001340],[1439251200000, 0.001350],[1439337600000, 0.001360],[1439424000000, 0.001340],[1439510400000, 0.001340],[1439596800000, 0.001360],[1439683200000, 0.001360],[1439769600000, 0.001360],[1439856000000, 0.001370],[1439942400000, 0.001360],[1440028800000, 0.001340],[1440115200000, 0.001340],[1440201600000, 0.001320],[1440288000000, 0.001320],[1440374400000, 0.001320],[1440547200000, 0.001270],[1440633600000, 0.001210],[1440720000000, 0.001210],[1440806400000, 0.001210],[1440892800000, 0.001210],[1440979200000, 0.001210]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });