$(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: [[1004572800000,4.78656],[1004659200000,4.79452],[1004745600000,4.79452],[1004832000000,4.79452],[1004918400000,4.79452],[1005004800000,4.74879],[1005091200000,4.74754],[1005177600000,4.77426],[1005264000000,4.72692],[1005350400000,4.72692],[1005436800000,4.72692],[1005523200000,4.72692],[1005609600000,4.72109],[1005696000000,4.68113],[1005782400000,4.65714],[1005868800000,4.67547],[1005955200000,4.67547],[1006041600000,4.67547],[1006128000000,4.67547],[1006214400000,4.64543],[1006300800000,4.65934],[1006387200000,4.63743],[1006473600000,4.64095],[1006560000000,4.64095],[1006646400000,4.64095],[1006732800000,4.64095],[1006819200000,4.64938],[1006905600000,4.63655],[1006992000000,4.66109],[1007078400000,4.70393]], 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: [[1004572800000, 4.786560],[1004572800000, 4.786560],[1004659200000, 4.794520],[1004745600000, 4.794520],[1004832000000, 4.794520],[1004918400000, 4.794520],[1005004800000, 4.748790],[1005091200000, 4.747540],[1005177600000, 4.774260],[1005264000000, 4.726920],[1005350400000, 4.726920],[1005436800000, 4.726920],[1005523200000, 4.726920],[1005609600000, 4.721090],[1005696000000, 4.681130],[1005782400000, 4.657140],[1005868800000, 4.675470],[1005955200000, 4.675470],[1006041600000, 4.675470],[1006128000000, 4.675470],[1006214400000, 4.645430],[1006300800000, 4.659340],[1006387200000, 4.637430],[1006473600000, 4.640950],[1006560000000, 4.640950],[1006646400000, 4.640950],[1006732800000, 4.640950],[1006819200000, 4.649380],[1006905600000, 4.636550],[1006992000000, 4.661090],[1007078400000, 4.703930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });