$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1141171200000,1.73307],[1141257600000,1.74583],[1141344000000,1.74565],[1141430400000,1.75848],[1141516800000,1.75848],[1141603200000,1.75848],[1141689600000,1.76524],[1141776000000,1.74831],[1141862400000,1.74831],[1141948800000,1.74686],[1142035200000,1.74686],[1142121600000,1.74686],[1142208000000,1.74686],[1142294400000,1.74318],[1142380800000,1.75062],[1142467200000,1.75927],[1142553600000,1.76395],[1142640000000,1.77986],[1142726400000,1.77986],[1142812800000,1.77986],[1142899200000,1.78244],[1142985600000,1.77536],[1143072000000,1.7679],[1143158400000,1.76475],[1143244800000,1.75007],[1143331200000,1.75007],[1143417600000,1.75007],[1143504000000,1.76081],[1143590400000,1.7575],[1143676800000,1.75695],[1143763200000,1.76321]], 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: [[1141171200000, 1.733073],[1141171200000, 1.733073],[1141257600000, 1.745834],[1141344000000, 1.745653],[1141430400000, 1.758479],[1141516800000, 1.758479],[1141603200000, 1.758479],[1141689600000, 1.765240],[1141776000000, 1.748312],[1141862400000, 1.748312],[1141948800000, 1.746861],[1142035200000, 1.746861],[1142121600000, 1.746861],[1142208000000, 1.746861],[1142294400000, 1.743183],[1142380800000, 1.750615],[1142467200000, 1.759275],[1142553600000, 1.763946],[1142640000000, 1.779861],[1142726400000, 1.779861],[1142812800000, 1.779861],[1142899200000, 1.782437],[1142985600000, 1.775356],[1143072000000, 1.767898],[1143158400000, 1.764747],[1143244800000, 1.750069],[1143331200000, 1.750069],[1143417600000, 1.750069],[1143504000000, 1.760809],[1143590400000, 1.757500],[1143676800000, 1.756950],[1143763200000, 1.763207]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });