$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1231200000000,1.11316],[1231286400000,1.09383],[1231372800000,1.09383],[1231459200000,1.10573],[1231545600000,1.10942],[1231632000000,1.10942],[1231718400000,1.10942],[1231804800000,1.09565],[1231891200000,1.07975],[1231977600000,1.07552],[1232064000000,1.06873],[1232150400000,1.10913],[1232236800000,null],[1232323200000,1.10913],[1232409600000,1.11295],[1232496000000,1.08319],[1232582400000,1.09775],[1232668800000,1.10716],[1232755200000,1.09541],[1232841600000,1.09541],[1232928000000,1.09541],[1233014400000,1.12468],[1233100800000,1.14009],[1233187200000,1.14889],[1233273600000,1.14721],[1233360000000,1.11036]], 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: [[1231200000000, 1.113160],[1231200000000, 1.113160],[1231286400000, 1.093835],[1231372800000, 1.093835],[1231459200000, 1.105731],[1231545600000, 1.109416],[1231632000000, 1.109416],[1231718400000, 1.109416],[1231804800000, 1.095653],[1231891200000, 1.079750],[1231977600000, 1.075518],[1232064000000, 1.068730],[1232150400000, 1.109134],[1232323200000, 1.109134],[1232409600000, 1.112954],[1232496000000, 1.083186],[1232582400000, 1.097753],[1232668800000, 1.107163],[1232755200000, 1.095414],[1232841600000, 1.095414],[1232928000000, 1.095414],[1233014400000, 1.124675],[1233100800000, 1.140093],[1233187200000, 1.148892],[1233273600000, 1.147212],[1233360000000, 1.110359]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });