$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1272672000000,7.9259],[1272758400000,7.9259],[1272844800000,7.9259],[1272931200000,7.9259],[1273017600000,7.9259],[1273104000000,7.9259],[1273190400000,7.9259],[1273276800000,7.9259],[1273363200000,7.9259],[1273449600000,7.9259],[1273536000000,7.9259],[1273622400000,7.9259],[1273708800000,7.9259],[1273795200000,7.9259],[1273881600000,7.9259],[1273968000000,null],[1274054400000,7.9259],[1274140800000,7.9259],[1274227200000,7.9259],[1274313600000,7.9257],[1274400000000,7.9257],[1274486400000,7.9255],[1274572800000,7.9255],[1274659200000,7.9255],[1274745600000,7.9255],[1274832000000,7.9255],[1274918400000,7.9254],[1275004800000,7.9251],[1275091200000,7.9251],[1275177600000,7.9251],[1275264000000,7.9251]], 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, 7.925900],[1272672000000, 7.925900],[1272758400000, 7.925900],[1272844800000, 7.925900],[1272931200000, 7.925900],[1273017600000, 7.925900],[1273104000000, 7.925900],[1273190400000, 7.925900],[1273276800000, 7.925900],[1273363200000, 7.925900],[1273449600000, 7.925900],[1273536000000, 7.925900],[1273622400000, 7.925900],[1273708800000, 7.925900],[1273795200000, 7.925900],[1273881600000, 7.925900],[1274054400000, 7.925900],[1274140800000, 7.925900],[1274227200000, 7.925900],[1274313600000, 7.925700],[1274400000000, 7.925700],[1274486400000, 7.925500],[1274572800000, 7.925500],[1274659200000, 7.925500],[1274745600000, 7.925500],[1274832000000, 7.925500],[1274918400000, 7.925400],[1275004800000, 7.925100],[1275091200000, 7.925100],[1275177600000, 7.925100],[1275264000000, 7.925100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });