$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1272672000000,5.34157],[1272758400000,5.34157],[1272844800000,5.34157],[1272931200000,5.34157],[1273017600000,5.34157],[1273104000000,5.22464],[1273190400000,5.15552],[1273276800000,5.0707],[1273363200000,5.0707],[1273449600000,5.0707],[1273536000000,5.0707],[1273622400000,5.15563],[1273708800000,5.19574],[1273795200000,5.22048],[1273881600000,5.17214],[1273968000000,null],[1274054400000,5.17214],[1274140800000,5.14087],[1274227200000,5.16263],[1274313600000,5.00815],[1274400000000,4.98118],[1274486400000,4.99319],[1274572800000,4.99319],[1274659200000,4.99319],[1274745600000,4.99319],[1274832000000,4.97705],[1274918400000,5.02699],[1275004800000,5.04399],[1275091200000,5.08547],[1275177600000,5.08547],[1275264000000,5.08547]], 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, 5.341568],[1272672000000, 5.341568],[1272758400000, 5.341568],[1272844800000, 5.341568],[1272931200000, 5.341568],[1273017600000, 5.341568],[1273104000000, 5.224642],[1273190400000, 5.155521],[1273276800000, 5.070698],[1273363200000, 5.070698],[1273449600000, 5.070698],[1273536000000, 5.070698],[1273622400000, 5.155631],[1273708800000, 5.195740],[1273795200000, 5.220476],[1273881600000, 5.172143],[1274054400000, 5.172143],[1274140800000, 5.140866],[1274227200000, 5.162635],[1274313600000, 5.008154],[1274400000000, 4.981176],[1274486400000, 4.993193],[1274572800000, 4.993193],[1274659200000, 4.993193],[1274745600000, 4.993193],[1274832000000, 4.977054],[1274918400000, 5.026989],[1275004800000, 5.043994],[1275091200000, 5.085468],[1275177600000, 5.085468],[1275264000000, 5.085468]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });