$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1231200000000,2.52856],[1231286400000,2.55364],[1231372800000,2.55364],[1231459200000,2.60079],[1231545600000,2.60519],[1231632000000,2.60519],[1231718400000,2.60519],[1231804800000,2.55092],[1231891200000,2.46553],[1231977600000,2.44769],[1232064000000,2.38213],[1232150400000,2.44418],[1232236800000,null],[1232323200000,2.44418],[1232409600000,2.33686],[1232496000000,2.27464],[1232582400000,2.28706],[1232668800000,2.31134],[1232755200000,2.2187],[1232841600000,2.2187],[1232928000000,2.2187],[1233014400000,2.30308],[1233100800000,2.32981],[1233187200000,2.34987],[1233273600000,2.3028],[1233360000000,2.21164]], 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, 2.528564],[1231200000000, 2.528564],[1231286400000, 2.553642],[1231372800000, 2.553642],[1231459200000, 2.600791],[1231545600000, 2.605187],[1231632000000, 2.605187],[1231718400000, 2.605187],[1231804800000, 2.550923],[1231891200000, 2.465532],[1231977600000, 2.447686],[1232064000000, 2.382128],[1232150400000, 2.444181],[1232323200000, 2.444181],[1232409600000, 2.336857],[1232496000000, 2.274640],[1232582400000, 2.287059],[1232668800000, 2.311335],[1232755200000, 2.218703],[1232841600000, 2.218703],[1232928000000, 2.218703],[1233014400000, 2.303085],[1233100800000, 2.329807],[1233187200000, 2.349873],[1233273600000, 2.302799],[1233360000000, 2.211636]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });