Skip to content

Instantly share code, notes, and snippets.

@savelee
Last active June 27, 2016 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/b71caa37e37bbf5f4e7b51afaabfe209 to your computer and use it in GitHub Desktop.
Save savelee/b71caa37e37bbf5f4e7b51afaabfe209 to your computer and use it in GitHub Desktop.
Out of the box Ext JS 6.2 - D3 implementation
Ext.define('Dashboard.view.contacts.Chart', {
extend: 'Ext.d3.svg.hierarchy.tree.HorizontalTree',
xtype: 'departments-chart',
requires: [
'Ext.d3.interaction.PanZoom'
],
nodeSize: [20, 70],
bind: {
store: '{department}',
selection: '{selection}'
},
interactions: {
type: 'panzoom',
zoom: {
extent: [0.3, 3],
doubleTap: false
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment