$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1220227200000,0.19719],[1220313600000,0.1965],[1220400000000,0.19621],[1220486400000,0.19501],[1220572800000,0.19236],[1220659200000,0.19056],[1220745600000,0.19056],[1220832000000,0.19056],[1220918400000,0.19203],[1221004800000,0.18965],[1221091200000,0.1897],[1221177600000,0.18819],[1221264000000,0.18878],[1221350400000,0.18878],[1221436800000,0.18878],[1221523200000,0.19106],[1221609600000,0.19019],[1221696000000,0.19006],[1221782400000,0.19076],[1221868800000,0.19034],[1221955200000,0.19034],[1222041600000,0.19034],[1222128000000,0.19195],[1222214400000,0.19431],[1222300800000,0.19386],[1222387200000,0.19526],[1222473600000,0.19427],[1222560000000,0.19427],[1222646400000,0.19427],[1222732800000,0.19254]], 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: [[1220227200000, 0.197190],[1220227200000, 0.197190],[1220313600000, 0.196500],[1220400000000, 0.196210],[1220486400000, 0.195010],[1220572800000, 0.192360],[1220659200000, 0.190560],[1220745600000, 0.190560],[1220832000000, 0.190560],[1220918400000, 0.192030],[1221004800000, 0.189650],[1221091200000, 0.189700],[1221177600000, 0.188190],[1221264000000, 0.188780],[1221350400000, 0.188780],[1221436800000, 0.188780],[1221523200000, 0.191060],[1221609600000, 0.190190],[1221696000000, 0.190060],[1221782400000, 0.190760],[1221868800000, 0.190340],[1221955200000, 0.190340],[1222041600000, 0.190340],[1222128000000, 0.191950],[1222214400000, 0.194310],[1222300800000, 0.193860],[1222387200000, 0.195260],[1222473600000, 0.194270],[1222560000000, 0.194270],[1222646400000, 0.194270],[1222732800000, 0.192540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });