$(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: [[988675200000,4.88668],[988761600000,4.88668],[988848000000,4.88668],[988934400000,4.8216],[989020800000,4.841],[989107200000,4.841],[989193600000,4.841],[989280000000,4.82964],[989366400000,4.80032],[989452800000,4.80032],[989539200000,4.79166],[989625600000,4.79166],[989712000000,4.74926],[989798400000,4.74926],[989884800000,4.73367],[989971200000,4.74585],[990057600000,4.7814],[990144000000,4.77094],[990230400000,4.75029],[990316800000,4.75029],[990403200000,4.75029],[990489600000,4.73793],[990576000000,4.70041],[990662400000,4.64629],[990748800000,4.65614],[990835200000,4.64988],[990921600000,4.64988],[991008000000,4.64988],[991094400000,4.64609],[991180800000,4.63159],[991267200000,4.63433]], 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: [[988675200000, 4.886680],[988675200000, 4.886680],[988761600000, 4.886680],[988848000000, 4.886680],[988934400000, 4.821600],[989020800000, 4.841000],[989107200000, 4.841000],[989193600000, 4.841000],[989280000000, 4.829640],[989366400000, 4.800320],[989452800000, 4.800320],[989539200000, 4.791660],[989625600000, 4.791660],[989712000000, 4.749260],[989798400000, 4.749260],[989884800000, 4.733670],[989971200000, 4.745850],[990057600000, 4.781400],[990144000000, 4.770940],[990230400000, 4.750290],[990316800000, 4.750290],[990403200000, 4.750290],[990489600000, 4.737930],[990576000000, 4.700410],[990662400000, 4.646290],[990748800000, 4.656140],[990835200000, 4.649880],[990921600000, 4.649880],[991008000000, 4.649880],[991094400000, 4.646090],[991180800000, 4.631590],[991267200000, 4.634330]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });