$(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: [[993945600000,0.18485],[994032000000,0.18485],[994118400000,0.18485],[994204800000,0.18485],[994291200000,0.18439],[994377600000,0.18462],[994464000000,0.18445],[994550400000,null],[994636800000,null],[994723200000,0.18407],[994809600000,0.18394],[994896000000,0.18407],[994982400000,0.18392],[995068800000,0.18392],[995155200000,0.18392],[995241600000,0.18392],[995328000000,0.18371],[995414400000,0.18383],[995500800000,0.18381],[995587200000,0.18346],[995673600000,0.18334],[995760000000,0.18334],[995846400000,0.18334],[995932800000,0.18348],[996019200000,0.18316],[996105600000,0.18324],[996192000000,0.18327],[996278400000,0.18307],[996364800000,0.18307],[996451200000,0.18307],[996537600000,0.1829]], 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: [[993945600000, 0.184850],[993945600000, 0.184850],[994032000000, 0.184850],[994118400000, 0.184850],[994204800000, 0.184850],[994291200000, 0.184390],[994377600000, 0.184620],[994464000000, 0.184450],[994723200000, 0.184070],[994809600000, 0.183940],[994896000000, 0.184070],[994982400000, 0.183920],[995068800000, 0.183920],[995155200000, 0.183920],[995241600000, 0.183920],[995328000000, 0.183710],[995414400000, 0.183830],[995500800000, 0.183810],[995587200000, 0.183460],[995673600000, 0.183340],[995760000000, 0.183340],[995846400000, 0.183340],[995932800000, 0.183480],[996019200000, 0.183160],[996105600000, 0.183240],[996192000000, 0.183270],[996278400000, 0.183070],[996364800000, 0.183070],[996451200000, 0.183070],[996537600000, 0.182900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });