$(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: [[1164931200000,6.666],[1165017600000,6.68822],[1165104000000,6.68822],[1165190400000,6.68822],[1165276800000,6.72105],[1165363200000,6.73215],[1165449600000,6.70337],[1165536000000,6.71499],[1165622400000,6.70438],[1165708800000,6.70438],[1165795200000,6.70438],[1165881600000,6.65439],[1165968000000,6.68822],[1166054400000,6.69883],[1166140800000,6.66196],[1166227200000,6.61853],[1166313600000,6.61853],[1166400000000,6.61853],[1166486400000,6.61297],[1166572800000,6.64479],[1166659200000,6.66751],[1166745600000,6.65489],[1166832000000,6.66196],[1166918400000,6.66196],[1167004800000,6.66196],[1167091200000,6.66196],[1167177600000,6.66196],[1167264000000,6.64529],[1167350400000,6.65236],[1167436800000,6.65085]], 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: [[1164931200000, 6.666000],[1164931200000, 6.666000],[1165017600000, 6.688220],[1165104000000, 6.688220],[1165190400000, 6.688220],[1165276800000, 6.721045],[1165363200000, 6.732155],[1165449600000, 6.703370],[1165536000000, 6.714985],[1165622400000, 6.704380],[1165708800000, 6.704380],[1165795200000, 6.704380],[1165881600000, 6.654385],[1165968000000, 6.688220],[1166054400000, 6.698825],[1166140800000, 6.661960],[1166227200000, 6.618530],[1166313600000, 6.618530],[1166400000000, 6.618530],[1166486400000, 6.612975],[1166572800000, 6.644790],[1166659200000, 6.667515],[1166745600000, 6.654890],[1166832000000, 6.661960],[1166918400000, 6.661960],[1167004800000, 6.661960],[1167091200000, 6.661960],[1167177600000, 6.661960],[1167264000000, 6.645295],[1167350400000, 6.652365],[1167436800000, 6.650850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });