$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1462060800000,3.86037],[1462147200000,3.86037],[1462233600000,3.86037],[1462320000000,3.86037],[1462406400000,3.89592],[1462492800000,3.86261],[1462579200000,3.86522],[1462665600000,3.86522],[1462752000000,3.86522],[1462838400000,3.86522],[1462924800000,3.85244],[1463011200000,3.88314],[1463097600000,3.87449],[1463184000000,3.88225],[1463270400000,3.88225],[1463356800000,3.88225],[1463443200000,3.86596],[1463529600000,3.84541],[1463616000000,3.83037],[1463702400000,3.80324],[1463788800000,3.80174],[1463875200000,null],[1463961600000,3.80174],[1464048000000,3.7886],[1464134400000,3.77454],[1464220800000,3.76372],[1464307200000,3.76937],[1464393600000,3.77478],[1464480000000,3.77478],[1464566400000,3.77478],[1464652800000,3.76937]], 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: [[1462060800000, 3.860370],[1462060800000, 3.860370],[1462147200000, 3.860370],[1462233600000, 3.860370],[1462320000000, 3.860370],[1462406400000, 3.895916],[1462492800000, 3.862613],[1462579200000, 3.865222],[1462665600000, 3.865222],[1462752000000, 3.865222],[1462838400000, 3.865222],[1462924800000, 3.852439],[1463011200000, 3.883139],[1463097600000, 3.874488],[1463184000000, 3.882245],[1463270400000, 3.882245],[1463356800000, 3.882245],[1463443200000, 3.865958],[1463529600000, 3.845410],[1463616000000, 3.830374],[1463702400000, 3.803236],[1463788800000, 3.801744],[1463961600000, 3.801744],[1464048000000, 3.788603],[1464134400000, 3.774535],[1464220800000, 3.763718],[1464307200000, 3.769370],[1464393600000, 3.774781],[1464480000000, 3.774781],[1464566400000, 3.774781],[1464652800000, 3.769368]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });