Give visitors an interactive view of company structure without leaving your site. Create an embed key in Developers settings, allow your domain, and paste one snippet.
https://www.yourcompany.com).Copy the generated snippet from the embed detail page. The loader uses the branded function(A,r,x,e,n,a) pattern (spells ARXENA):
<!-- Arxena Org Chart -->
<div id="arxena-orgchart" style="width:100%;height:600px"></div>
<script>
(function(A,r,x,e,n,a){
A[a]=A[a]||function(){(A[a].q=A[a].q||[]).push(arguments)};
n=r.getElementsByTagName(e)[0];
x=r.createElement(e);
x.async=1;x.src='https://arxena.com/embed/orgchart.js';
n.parentNode.insertBefore(x,n);
})(window,document,'script','script',null,'arxenaOrgChart');
arxenaOrgChart('init', {
embedKey: 'emb_your_key_here',
domain: 'acme.com',
container: '#arxena-orgchart',
height: '600px',
mode: 'iframe'
});
</script>The chart loads in an iframe from arxena.com by default. Your origin must match the allowlist on the embed key.
New to Arxena? Create a workspace first, then create an embed key from Developers settings.