$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1272672000000,14.9185],[1272758400000,14.9185],[1272844800000,14.9185],[1272931200000,14.9185],[1273017600000,14.9185],[1273104000000,14.4947],[1273190400000,14.2637],[1273276800000,14.285],[1273363200000,14.285],[1273449600000,14.285],[1273536000000,14.285],[1273622400000,14.2232],[1273708800000,14.1977],[1273795200000,14.1008],[1273881600000,13.9944],[1273968000000,null],[1274054400000,13.9944],[1274140800000,13.8362],[1274227200000,13.9247],[1274313600000,13.7473],[1274400000000,13.819],[1274486400000,14.0013],[1274572800000,14.0013],[1274659200000,14.0013],[1274745600000,14.0013],[1274832000000,13.6943],[1274918400000,13.7749],[1275004800000,13.7197],[1275091200000,13.8622],[1275177600000,13.8622],[1275264000000,13.8622]], 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, 14.918484],[1272672000000, 14.918484],[1272758400000, 14.918484],[1272844800000, 14.918484],[1272931200000, 14.918484],[1273017600000, 14.918484],[1273104000000, 14.494741],[1273190400000, 14.263706],[1273276800000, 14.285000],[1273363200000, 14.285000],[1273449600000, 14.285000],[1273536000000, 14.285000],[1273622400000, 14.223160],[1273708800000, 14.197680],[1273795200000, 14.100820],[1273881600000, 13.994395],[1274054400000, 13.994395],[1274140800000, 13.836152],[1274227200000, 13.924666],[1274313600000, 13.747291],[1274400000000, 13.818997],[1274486400000, 14.001269],[1274572800000, 14.001269],[1274659200000, 14.001269],[1274745600000, 14.001269],[1274832000000, 13.694287],[1274918400000, 13.774887],[1275004800000, 13.719749],[1275091200000, 13.862209],[1275177600000, 13.862209],[1275264000000, 13.862209]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });