$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1275350400000,1.01355],[1275436800000,1.00173],[1275523200000,1.0122],[1275609600000,1.02119],[1275696000000,1.00038],[1275782400000,1.00038],[1275868800000,1.00038],[1275955200000,0.982148],[1276041600000,0.979052],[1276128000000,0.988764],[1276214400000,0.995657],[1276300800000,1.00193],[1276387200000,1.00193],[1276473600000,1.00193],[1276560000000,1.01337],[1276646400000,1.00829],[1276732800000,1.0118],[1276819200000,1.02174],[1276905600000,1.02392],[1276992000000,1.02392],[1277078400000,1.02392],[1277164800000,1.02988],[1277251200000,1.0145],[1277337600000,1.02041],[1277424000000,1.01299],[1277510400000,1.01677],[1277596800000,1.01677],[1277683200000,1.01677],[1277769600000,1.01677],[1277856000000,1.01269]], 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, 1.013553],[1275350400000, 1.013553],[1275436800000, 1.001732],[1275523200000, 1.012198],[1275609600000, 1.021191],[1275696000000, 1.000376],[1275782400000, 1.000376],[1275868800000, 1.000376],[1275955200000, 0.982148],[1276041600000, 0.979052],[1276128000000, 0.988764],[1276214400000, 0.995657],[1276300800000, 1.001930],[1276387200000, 1.001930],[1276473600000, 1.001930],[1276560000000, 1.013375],[1276646400000, 1.008286],[1276732800000, 1.011797],[1276819200000, 1.021736],[1276905600000, 1.023923],[1276992000000, 1.023923],[1277078400000, 1.023923],[1277164800000, 1.029875],[1277251200000, 1.014498],[1277337600000, 1.020407],[1277424000000, 1.012994],[1277510400000, 1.016772],[1277596800000, 1.016772],[1277683200000, 1.016772],[1277769600000, 1.016772],[1277856000000, 1.012690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });