$(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: [[1272672000000,1.34532],[1272758400000,1.34532],[1272844800000,1.34532],[1272931200000,1.34532],[1273017600000,1.34532],[1273104000000,1.31049],[1273190400000,1.29565],[1273276800000,1.2701],[1273363200000,1.2701],[1273449600000,1.2701],[1273536000000,1.2701],[1273622400000,1.28355],[1273708800000,1.29131],[1273795200000,1.28768],[1273881600000,1.28152],[1273968000000,null],[1274054400000,1.28152],[1274140800000,1.26751],[1274227200000,1.27463],[1274313600000,1.24645],[1274400000000,1.21511],[1274486400000,1.21632],[1274572800000,1.21632],[1274659200000,1.21632],[1274745600000,1.21632],[1274832000000,1.19199],[1274918400000,1.22286],[1275004800000,1.21616],[1275091200000,1.23274],[1275177600000,1.23274],[1275264000000,1.23274]], 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: [[1272672000000, 1.345317],[1272672000000, 1.345317],[1272758400000, 1.345317],[1272844800000, 1.345317],[1272931200000, 1.345317],[1273017600000, 1.345317],[1273104000000, 1.310488],[1273190400000, 1.295651],[1273276800000, 1.270097],[1273363200000, 1.270097],[1273449600000, 1.270097],[1273536000000, 1.270097],[1273622400000, 1.283549],[1273708800000, 1.291311],[1273795200000, 1.287684],[1273881600000, 1.281521],[1274054400000, 1.281521],[1274140800000, 1.267508],[1274227200000, 1.274626],[1274313600000, 1.246454],[1274400000000, 1.215110],[1274486400000, 1.216320],[1274572800000, 1.216320],[1274659200000, 1.216320],[1274745600000, 1.216320],[1274832000000, 1.191994],[1274918400000, 1.222861],[1275004800000, 1.216155],[1275091200000, 1.232738],[1275177600000, 1.232738],[1275264000000, 1.232738]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });