$(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: [[1170288000000,7.52527],[1170374400000,7.55549],[1170460800000,7.55411],[1170547200000,7.55411],[1170633600000,7.55411],[1170720000000,7.53132],[1170806400000,7.54309],[1170892800000,7.54984],[1170979200000,7.5456],[1171065600000,7.53531],[1171152000000,7.53531],[1171238400000,7.53531],[1171324800000,7.52342],[1171411200000,7.53629],[1171497600000,7.55839],[1171584000000,7.57704],[1171670400000,7.57753],[1171756800000,7.57753],[1171843200000,7.57753],[1171929600000,7.57753],[1172016000000,7.57456],[1172102400000,7.5701],[1172188800000,7.55762],[1172275200000,7.56525],[1172361600000,null],[1172448000000,7.56525],[1172534400000,7.58118],[1172620800000,7.60226]], 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: [[1170288000000, 7.525273],[1170288000000, 7.525273],[1170374400000, 7.555492],[1170460800000, 7.554113],[1170547200000, 7.554113],[1170633600000, 7.554113],[1170720000000, 7.531322],[1170806400000, 7.543089],[1170892800000, 7.549844],[1170979200000, 7.545602],[1171065600000, 7.535312],[1171152000000, 7.535312],[1171238400000, 7.535312],[1171324800000, 7.523423],[1171411200000, 7.536290],[1171497600000, 7.558387],[1171584000000, 7.577042],[1171670400000, 7.577531],[1171756800000, 7.577531],[1171843200000, 7.577531],[1171929600000, 7.577531],[1172016000000, 7.574564],[1172102400000, 7.570102],[1172188800000, 7.557617],[1172275200000, 7.565248],[1172448000000, 7.565248],[1172534400000, 7.581182],[1172620800000, 7.602262]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });