$(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: [[1422748800000,0.00105],[1422835200000,0.00105],[1422921600000,0.00105],[1423008000000,0.00105],[1423094400000,0.00108],[1423180800000,0.00119],[1423267200000,null],[1423353600000,0.0015],[1423440000000,0.0015],[1423526400000,0.00163],[1423612800000,0.00163],[1423699200000,0.00168],[1423785600000,0.00164],[1423872000000,0.00169],[1423958400000,0.00169],[1424044800000,0.00169],[1424131200000,0.00173],[1424217600000,0.00177],[1424304000000,0.0018],[1424390400000,0.00183],[1424476800000,0.00189],[1424563200000,0.00189],[1424649600000,0.00189],[1424736000000,0.00192],[1424822400000,0.0019],[1424908800000,0.00187],[1424995200000,0.00201],[1425081600000,0.00188]], 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: [[1422748800000, 0.001050],[1422748800000, 0.001050],[1422835200000, 0.001050],[1422921600000, 0.001050],[1423008000000, 0.001050],[1423094400000, 0.001080],[1423180800000, 0.001190],[1423353600000, 0.001500],[1423440000000, 0.001500],[1423526400000, 0.001630],[1423612800000, 0.001630],[1423699200000, 0.001680],[1423785600000, 0.001640],[1423872000000, 0.001690],[1423958400000, 0.001690],[1424044800000, 0.001690],[1424131200000, 0.001730],[1424217600000, 0.001770],[1424304000000, 0.001800],[1424390400000, 0.001830],[1424476800000, 0.001890],[1424563200000, 0.001890],[1424649600000, 0.001890],[1424736000000, 0.001920],[1424822400000, 0.001900],[1424908800000, 0.001870],[1424995200000, 0.002010],[1425081600000, 0.001880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });