Create a gist now

Instantly share code, notes, and snippets.

@savelee /Chart.js
Last active Jun 27, 2016

Embed
What would you like to do?
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