$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1275350400000,13.7566],[1275436800000,13.5809],[1275523200000,13.658],[1275609600000,13.723],[1275696000000,13.4854],[1275782400000,13.4854],[1275868800000,13.4854],[1275955200000,13.3739],[1276041600000,13.3673],[1276128000000,13.4412],[1276214400000,13.4745],[1276300800000,13.5663],[1276387200000,13.5663],[1276473600000,13.5663],[1276560000000,13.7012],[1276646400000,13.71],[1276732800000,13.7349],[1276819200000,13.8243],[1276905600000,13.8335],[1276992000000,13.8335],[1277078400000,13.8335],[1277164800000,13.839],[1277251200000,13.688],[1277337600000,13.7015],[1277424000000,13.6888],[1277510400000,13.721],[1277596800000,13.721],[1277683200000,13.721],[1277769600000,13.721],[1277856000000,13.5979]], 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, 13.756588],[1275350400000, 13.756588],[1275436800000, 13.580938],[1275523200000, 13.657966],[1275609600000, 13.723018],[1275696000000, 13.485443],[1275782400000, 13.485443],[1275868800000, 13.485443],[1275955200000, 13.373887],[1276041600000, 13.367276],[1276128000000, 13.441185],[1276214400000, 13.474503],[1276300800000, 13.566267],[1276387200000, 13.566267],[1276473600000, 13.566267],[1276560000000, 13.701189],[1276646400000, 13.710043],[1276732800000, 13.734861],[1276819200000, 13.824336],[1276905600000, 13.833526],[1276992000000, 13.833526],[1277078400000, 13.833526],[1277164800000, 13.838978],[1277251200000, 13.687985],[1277337600000, 13.701462],[1277424000000, 13.688788],[1277510400000, 13.721041],[1277596800000, 13.721041],[1277683200000, 13.721041],[1277769600000, 13.721041],[1277856000000, 13.597855]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });