$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1275350400000,2.39107],[1275436800000,2.34151],[1275523200000,2.36137],[1275609600000,2.38859],[1275696000000,2.27726],[1275782400000,2.27726],[1275868800000,2.27726],[1275955200000,2.28242],[1276041600000,2.28825],[1276128000000,2.31243],[1276214400000,2.31353],[1276300800000,2.34764],[1276387200000,2.34764],[1276473600000,2.34764],[1276560000000,2.37796],[1276646400000,2.3816],[1276732800000,2.37377],[1276819200000,2.40016],[1276905600000,2.40654],[1276992000000,2.40654],[1277078400000,2.40654],[1277164800000,2.42748],[1277251200000,2.38826],[1277337600000,2.38702],[1277424000000,2.35361],[1277510400000,2.35755],[1277596800000,2.35755],[1277683200000,2.35755],[1277769600000,2.35755],[1277856000000,2.31833]], 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, 2.391072],[1275350400000, 2.391072],[1275436800000, 2.341507],[1275523200000, 2.361368],[1275609600000, 2.388591],[1275696000000, 2.277256],[1275782400000, 2.277256],[1275868800000, 2.277256],[1275955200000, 2.282419],[1276041600000, 2.288252],[1276128000000, 2.312430],[1276214400000, 2.313530],[1276300800000, 2.347638],[1276387200000, 2.347638],[1276473600000, 2.347638],[1276560000000, 2.377964],[1276646400000, 2.381604],[1276732800000, 2.373773],[1276819200000, 2.400162],[1276905600000, 2.406540],[1276992000000, 2.406540],[1277078400000, 2.406540],[1277164800000, 2.427476],[1277251200000, 2.388258],[1277337600000, 2.387024],[1277424000000, 2.353606],[1277510400000, 2.357550],[1277596800000, 2.357550],[1277683200000, 2.357550],[1277769600000, 2.357550],[1277856000000, 2.318332]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });