$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1406851200000,16.2115],[1406937600000,16.0057],[1407024000000,16.0057],[1407110400000,16.0057],[1407196800000,16.3192],[1407283200000,16.5058],[1407369600000,16.5333],[1407456000000,16.6259],[1407542400000,16.8527],[1407628800000,16.8527],[1407715200000,16.8527],[1407801600000,17.1714],[1407888000000,17.5883],[1407974400000,17.4975],[1408060800000,17.4905],[1408147200000,17.5661],[1408233600000,17.5661],[1408320000000,17.5661],[1408406400000,17.5025],[1408492800000,17.3344],[1408579200000,17.6581],[1408665600000,17.419],[1408752000000,17.7252],[1408838400000,17.7252],[1408924800000,17.7252],[1409011200000,17.7252],[1409097600000,18.0304],[1409184000000,18.325],[1409270400000,17.7066],[1409356800000,17.9297]], 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: [[1406851200000, 16.211522],[1406851200000, 16.211522],[1406937600000, 16.005672],[1407024000000, 16.005672],[1407110400000, 16.005672],[1407196800000, 16.319208],[1407283200000, 16.505827],[1407369600000, 16.533299],[1407456000000, 16.625930],[1407542400000, 16.852711],[1407628800000, 16.852711],[1407715200000, 16.852711],[1407801600000, 17.171419],[1407888000000, 17.588308],[1407974400000, 17.497488],[1408060800000, 17.490492],[1408147200000, 17.566092],[1408233600000, 17.566092],[1408320000000, 17.566092],[1408406400000, 17.502549],[1408492800000, 17.334432],[1408579200000, 17.658097],[1408665600000, 17.419030],[1408752000000, 17.725239],[1408838400000, 17.725239],[1408924800000, 17.725239],[1409011200000, 17.725239],[1409097600000, 18.030419],[1409184000000, 18.324973],[1409270400000, 17.706573],[1409356800000, 17.929693]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });