$(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: [[1112313600000,6.84577],[1112400000000,6.84313],[1112486400000,6.84313],[1112572800000,6.84313],[1112659200000,6.80209],[1112745600000,6.76355],[1112832000000,6.78365],[1112918400000,6.81649],[1113004800000,6.75561],[1113091200000,6.75561],[1113177600000,6.75561],[1113264000000,6.83442],[1113350400000,6.83855],[1113436800000,6.79762],[1113523200000,6.73819],[1113609600000,6.7364],[1113696000000,6.7364],[1113782400000,6.7364],[1113868800000,6.76877],[1113955200000,6.74492],[1114041600000,6.58974],[1114128000000,6.59429],[1114214400000,6.60389],[1114300800000,6.60389],[1114387200000,6.60389],[1114473600000,6.54783],[1114560000000,6.55541],[1114646400000,6.5246],[1114732800000,6.51703],[1114819200000,6.54329]], 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: [[1112313600000, 6.845770],[1112313600000, 6.845770],[1112400000000, 6.843130],[1112486400000, 6.843130],[1112572800000, 6.843130],[1112659200000, 6.802095],[1112745600000, 6.763552],[1112832000000, 6.783650],[1112918400000, 6.816495],[1113004800000, 6.755613],[1113091200000, 6.755613],[1113177600000, 6.755613],[1113264000000, 6.834420],[1113350400000, 6.838550],[1113436800000, 6.797618],[1113523200000, 6.738192],[1113609600000, 6.736398],[1113696000000, 6.736398],[1113782400000, 6.736398],[1113868800000, 6.768774],[1113955200000, 6.744924],[1114041600000, 6.589745],[1114128000000, 6.594290],[1114214400000, 6.603885],[1114300800000, 6.603885],[1114387200000, 6.603885],[1114473600000, 6.547830],[1114560000000, 6.555405],[1114646400000, 6.524600],[1114732800000, 6.517025],[1114819200000, 6.543285]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });