$(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: [[1275350400000,5.03792],[1275436800000,4.99428],[1275523200000,5.01294],[1275609600000,5.03327],[1275696000000,4.96832],[1275782400000,4.96832],[1275868800000,4.96832],[1275955200000,4.95695],[1276041600000,4.94114],[1276128000000,4.95707],[1276214400000,4.96042],[1276300800000,5.01279],[1276387200000,5.01279],[1276473600000,5.01279],[1276560000000,5.0387],[1276646400000,5.02238],[1276732800000,5.03585],[1276819200000,5.06635],[1276905600000,5.07444],[1276992000000,5.07444],[1277078400000,5.07444],[1277164800000,5.09653],[1277251200000,5.05952],[1277337600000,5.04502],[1277424000000,4.99023],[1277510400000,5.0007],[1277596800000,5.0007],[1277683200000,5.0007],[1277769600000,5.0007],[1277856000000,4.99661]], 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: [[1275350400000, 5.037924],[1275350400000, 5.037924],[1275436800000, 4.994276],[1275523200000, 5.012941],[1275609600000, 5.033265],[1275696000000, 4.968321],[1275782400000, 4.968321],[1275868800000, 4.968321],[1275955200000, 4.956946],[1276041600000, 4.941143],[1276128000000, 4.957067],[1276214400000, 4.960417],[1276300800000, 5.012789],[1276387200000, 5.012789],[1276473600000, 5.012789],[1276560000000, 5.038699],[1276646400000, 5.022379],[1276732800000, 5.035855],[1276819200000, 5.066346],[1276905600000, 5.074444],[1276992000000, 5.074444],[1277078400000, 5.074444],[1277164800000, 5.096526],[1277251200000, 5.059519],[1277337600000, 5.045021],[1277424000000, 4.990227],[1277510400000, 5.000698],[1277596800000, 5.000698],[1277683200000, 5.000698],[1277769600000, 5.000698],[1277856000000, 4.996611]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });