Last active
June 27, 2016 17:20
-
-
Save savelee/b71caa37e37bbf5f4e7b51afaabfe209 to your computer and use it in GitHub Desktop.
Out of the box Ext JS 6.2 - D3 implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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