$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1367366400000,8.53771],[1367452800000,8.53771],[1367539200000,8.53771],[1367625600000,8.53771],[1367712000000,8.53771],[1367798400000,8.53771],[1367884800000,8.53771],[1367971200000,8.49463],[1368057600000,8.5107],[1368144000000,8.5107],[1368230400000,8.5107],[1368316800000,8.5107],[1368403200000,8.5107],[1368489600000,8.35966],[1368576000000,8.35415],[1368662400000,8.22641],[1368748800000,8.27947],[1368835200000,8.26267],[1368921600000,8.26267],[1369008000000,8.26267],[1369094400000,8.24511],[1369180800000,8.24286],[1369267200000,8.19855],[1369353600000,8.25034],[1369440000000,8.29628],[1369526400000,8.29628],[1369612800000,8.29628],[1369699200000,8.30561],[1369785600000,8.25129],[1369872000000,8.2953],[1369958400000,8.28553]], 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: [[1367366400000, 8.537710],[1367366400000, 8.537710],[1367452800000, 8.537710],[1367539200000, 8.537710],[1367625600000, 8.537710],[1367712000000, 8.537710],[1367798400000, 8.537710],[1367884800000, 8.537710],[1367971200000, 8.494628],[1368057600000, 8.510705],[1368144000000, 8.510705],[1368230400000, 8.510705],[1368316800000, 8.510705],[1368403200000, 8.510705],[1368489600000, 8.359657],[1368576000000, 8.354153],[1368662400000, 8.226414],[1368748800000, 8.279474],[1368835200000, 8.262665],[1368921600000, 8.262665],[1369008000000, 8.262665],[1369094400000, 8.245107],[1369180800000, 8.242861],[1369267200000, 8.198551],[1369353600000, 8.250343],[1369440000000, 8.296280],[1369526400000, 8.296280],[1369612800000, 8.296280],[1369699200000, 8.305608],[1369785600000, 8.251291],[1369872000000, 8.295299],[1369958400000, 8.285528]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });