Well, These are two different server instances and there is no tool to link those gadget between two server on a single click, however you can achieve this pragmatically as below.
Create jaggary file (data access file to read data set from DB) in BAM server to read the data from BAM RDBMS.
Create gadget in UES and use BAM server data file to get your data for the gadget. For this you need to edit the chart draw code in UES to read data from BAM jaggary file.
NOTE: Also in future, UES is going to be bundled with BAM, So when you have BAM , you have UES within it. Release date not available as of now but it will be in one of next major version release.
Well, These are two different server instances and there is no tool to link those gadget between two server on a single click, however you can achieve this pragmatically as below.
For this you need to do jaggary coding ( http://jaggeryjs.org/ )
NOTE: Also in future, UES is going to be bundled with BAM, So when you have BAM , you have UES within it. Release date not available as of now but it will be in one of next major version release.