$(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: [[1446336000000,2.69692],[1446422400000,2.69692],[1446508800000,2.71933],[1446595200000,2.70486],[1446681600000,2.70593],[1446768000000,2.68091],[1446854400000,2.65392],[1446940800000,2.65392],[1447027200000,2.65392],[1447113600000,2.64018],[1447200000000,2.62811],[1447286400000,2.64407],[1447372800000,2.63632],[1447459200000,2.65983],[1447545600000,2.65983],[1447632000000,2.65983],[1447718400000,2.67436],[1447804800000,2.74588],[1447891200000,2.76236],[1447977600000,2.75259],[1448064000000,2.78532],[1448150400000,2.78532],[1448236800000,2.78532],[1448323200000,2.78808],[1448409600000,2.76994],[1448496000000,2.74095],[1448582400000,2.72397],[1448668800000,2.75017],[1448755200000,2.75017],[1448841600000,2.75017]], 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: [[1446336000000, 2.696922],[1446336000000, 2.696922],[1446422400000, 2.696922],[1446508800000, 2.719330],[1446595200000, 2.704861],[1446681600000, 2.705927],[1446768000000, 2.680907],[1446854400000, 2.653922],[1446940800000, 2.653922],[1447027200000, 2.653922],[1447113600000, 2.640185],[1447200000000, 2.628110],[1447286400000, 2.644075],[1447372800000, 2.636317],[1447459200000, 2.659832],[1447545600000, 2.659832],[1447632000000, 2.659832],[1447718400000, 2.674357],[1447804800000, 2.745885],[1447891200000, 2.762358],[1447977600000, 2.752593],[1448064000000, 2.785322],[1448150400000, 2.785322],[1448236800000, 2.785322],[1448323200000, 2.788081],[1448409600000, 2.769936],[1448496000000, 2.740950],[1448582400000, 2.723970],[1448668800000, 2.750173],[1448755200000, 2.750173],[1448841600000, 2.750173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });