$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1141171200000,0.0771],[1141257600000,0.078065],[1141344000000,0.076417],[1141430400000,0.07673],[1141516800000,0.07673],[1141603200000,0.07673],[1141689600000,0.076325],[1141776000000,0.075645],[1141862400000,0.075645],[1141948800000,0.072815],[1142035200000,0.071681],[1142121600000,0.071681],[1142208000000,0.071681],[1142294400000,0.070154],[1142380800000,0.071762],[1142467200000,0.072085],[1142553600000,0.072705],[1142640000000,0.073273],[1142726400000,0.073273],[1142812800000,0.073273],[1142899200000,0.072584],[1142985600000,0.071997],[1143072000000,0.070452],[1143158400000,0.070739],[1143244800000,0.068842],[1143331200000,0.068842],[1143417600000,0.068842],[1143504000000,0.069929],[1143590400000,0.070499],[1143676800000,0.070445],[1143763200000,0.071746]], 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.077100],[1141171200000, 0.077100],[1141257600000, 0.078065],[1141344000000, 0.076417],[1141430400000, 0.076730],[1141516800000, 0.076730],[1141603200000, 0.076730],[1141689600000, 0.076325],[1141776000000, 0.075645],[1141862400000, 0.075645],[1141948800000, 0.072815],[1142035200000, 0.071681],[1142121600000, 0.071681],[1142208000000, 0.071681],[1142294400000, 0.070154],[1142380800000, 0.071762],[1142467200000, 0.072085],[1142553600000, 0.072705],[1142640000000, 0.073273],[1142726400000, 0.073273],[1142812800000, 0.073273],[1142899200000, 0.072584],[1142985600000, 0.071997],[1143072000000, 0.070452],[1143158400000, 0.070739],[1143244800000, 0.068842],[1143331200000, 0.068842],[1143417600000, 0.068842],[1143504000000, 0.069929],[1143590400000, 0.070499],[1143676800000, 0.070445],[1143763200000, 0.071746]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });