$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1220227200000,7.60793],[1220313600000,7.60919],[1220400000000,7.5485],[1220486400000,7.52984],[1220572800000,7.54518],[1220659200000,7.50184],[1220745600000,7.50184],[1220832000000,7.50184],[1220918400000,7.48718],[1221004800000,7.48534],[1221091200000,7.4713],[1221177600000,7.44343],[1221264000000,7.4775],[1221350400000,7.4775],[1221436800000,7.4775],[1221523200000,7.51922],[1221609600000,7.52183],[1221696000000,7.51411],[1221782400000,7.6],[1221868800000,7.5126],[1221955200000,7.5126],[1222041600000,7.5126],[1222128000000,7.611],[1222214400000,7.67483],[1222300800000,7.64864],[1222387200000,7.65497],[1222473600000,7.63574],[1222560000000,7.63574],[1222646400000,7.63574],[1222732800000,7.56531]], 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, 7.607933],[1220227200000, 7.607933],[1220313600000, 7.609189],[1220400000000, 7.548500],[1220486400000, 7.529839],[1220572800000, 7.545183],[1220659200000, 7.501836],[1220745600000, 7.501836],[1220832000000, 7.501836],[1220918400000, 7.487178],[1221004800000, 7.485342],[1221091200000, 7.471303],[1221177600000, 7.443434],[1221264000000, 7.477500],[1221350400000, 7.477500],[1221436800000, 7.477500],[1221523200000, 7.519218],[1221609600000, 7.521832],[1221696000000, 7.514107],[1221782400000, 7.599996],[1221868800000, 7.512602],[1221955200000, 7.512602],[1222041600000, 7.512602],[1222128000000, 7.611003],[1222214400000, 7.674834],[1222300800000, 7.648642],[1222387200000, 7.654967],[1222473600000, 7.635735],[1222560000000, 7.635735],[1222646400000, 7.635735],[1222732800000, 7.565311]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });