$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1272672000000,7.88799],[1272758400000,7.88799],[1272844800000,7.88799],[1272931200000,7.88799],[1273017600000,7.88799],[1273104000000,7.71343],[1273190400000,7.67561],[1273276800000,7.63652],[1273363200000,7.63652],[1273449600000,7.63652],[1273536000000,7.63652],[1273622400000,7.72336],[1273708800000,7.80046],[1273795200000,7.80621],[1273881600000,7.71589],[1273968000000,null],[1274054400000,7.71589],[1274140800000,7.65142],[1274227200000,7.71968],[1274313600000,7.57563],[1274400000000,7.45088],[1274486400000,7.38756],[1274572800000,7.38756],[1274659200000,7.38756],[1274745600000,7.38756],[1274832000000,7.33667],[1274918400000,7.45254],[1275004800000,7.51777],[1275091200000,7.57638],[1275177600000,7.57638],[1275264000000,7.57638]], 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.887986],[1272672000000, 7.887986],[1272758400000, 7.887986],[1272844800000, 7.887986],[1272931200000, 7.887986],[1273017600000, 7.887986],[1273104000000, 7.713429],[1273190400000, 7.675615],[1273276800000, 7.636520],[1273363200000, 7.636520],[1273449600000, 7.636520],[1273536000000, 7.636520],[1273622400000, 7.723358],[1273708800000, 7.800463],[1273795200000, 7.806205],[1273881600000, 7.715893],[1274054400000, 7.715893],[1274140800000, 7.651418],[1274227200000, 7.719678],[1274313600000, 7.575628],[1274400000000, 7.450883],[1274486400000, 7.387557],[1274572800000, 7.387557],[1274659200000, 7.387557],[1274745600000, 7.387557],[1274832000000, 7.336670],[1274918400000, 7.452540],[1275004800000, 7.517772],[1275091200000, 7.576381],[1275177600000, 7.576381],[1275264000000, 7.576381]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });