$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1272672000000,11.977],[1272758400000,11.977],[1272844800000,11.977],[1272931200000,11.977],[1273017600000,11.977],[1273104000000,11.8381],[1273190400000,11.7965],[1273276800000,11.7966],[1273363200000,11.7966],[1273449600000,11.7966],[1273536000000,11.7966],[1273622400000,11.7639],[1273708800000,11.7601],[1273795200000,11.7275],[1273881600000,11.6776],[1273968000000,null],[1274054400000,11.6776],[1274140800000,11.6195],[1274227200000,11.6452],[1274313600000,11.5872],[1274400000000,11.6415],[1274486400000,11.7225],[1274572800000,11.7225],[1274659200000,11.7225],[1274745600000,11.7225],[1274832000000,11.6285],[1274918400000,11.6589],[1275004800000,11.6603],[1275091200000,11.6842],[1275177600000,11.6842],[1275264000000,11.6842]], 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, 11.976965],[1272672000000, 11.976965],[1272758400000, 11.976965],[1272844800000, 11.976965],[1272931200000, 11.976965],[1273017600000, 11.976965],[1273104000000, 11.838094],[1273190400000, 11.796478],[1273276800000, 11.796636],[1273363200000, 11.796636],[1273449600000, 11.796636],[1273536000000, 11.796636],[1273622400000, 11.763929],[1273708800000, 11.760071],[1273795200000, 11.727532],[1273881600000, 11.677579],[1274054400000, 11.677579],[1274140800000, 11.619527],[1274227200000, 11.645220],[1274313600000, 11.587247],[1274400000000, 11.641454],[1274486400000, 11.722465],[1274572800000, 11.722465],[1274659200000, 11.722465],[1274745600000, 11.722465],[1274832000000, 11.628470],[1274918400000, 11.658926],[1275004800000, 11.660269],[1275091200000, 11.684199],[1275177600000, 11.684199],[1275264000000, 11.684199]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });