$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1141171200000,0.38327],[1141257600000,0.38582],[1141344000000,0.384755],[1141430400000,0.38795],[1141516800000,0.38795],[1141603200000,0.38795],[1141689600000,0.387853],[1141776000000,0.384497],[1141862400000,0.384497],[1141948800000,0.384723],[1142035200000,0.38469],[1142121600000,0.38469],[1142208000000,0.38469],[1142294400000,0.384787],[1142380800000,0.385626],[1142467200000,0.388144],[1142553600000,0.389532],[1142640000000,0.393276],[1142726400000,0.393276],[1142812800000,0.393276],[1142899200000,0.392921],[1142985600000,0.391952],[1143072000000,0.389532],[1143158400000,0.38908],[1143244800000,0.386304],[1143331200000,0.386304],[1143417600000,0.386304],[1143504000000,0.388111],[1143590400000,0.390016],[1143676800000,0.387692],[1143763200000,0.390403]], 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, 0.383270],[1141171200000, 0.383270],[1141257600000, 0.385820],[1141344000000, 0.384755],[1141430400000, 0.387950],[1141516800000, 0.387950],[1141603200000, 0.387950],[1141689600000, 0.387853],[1141776000000, 0.384497],[1141862400000, 0.384497],[1141948800000, 0.384723],[1142035200000, 0.384690],[1142121600000, 0.384690],[1142208000000, 0.384690],[1142294400000, 0.384787],[1142380800000, 0.385626],[1142467200000, 0.388144],[1142553600000, 0.389532],[1142640000000, 0.393276],[1142726400000, 0.393276],[1142812800000, 0.393276],[1142899200000, 0.392921],[1142985600000, 0.391952],[1143072000000, 0.389532],[1143158400000, 0.389080],[1143244800000, 0.386304],[1143331200000, 0.386304],[1143417600000, 0.386304],[1143504000000, 0.388111],[1143590400000, 0.390016],[1143676800000, 0.387692],[1143763200000, 0.390403]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });