Yep, I was able to make it work with SA.
I made the example the same way it's in the kitchesink:
Code:
Ext.define('MyApp.view.Tree', { extend: 'Ext.Panel',
alias: 'widget.tree',
requires: [
'MyApp.view.TreeViewModel',
'MyApp.view.TreeViewController',
'Ext.d3.hierarchy.tree.HorizontalTree',
'Ext.d3.axis.Color',
'Ext.d3.interaction.PanZoom'
],
controller: 'tree',
viewModel: {
type: 'tree'
},
layout: 'fit',
items: [
{
xtype: 'd3-tree',
nodeText: function(component, node) {
var record = node.data,
text = record.data.text;
if (node.depth > 1) {
text += ' (' + Ext.util.Format.currency(record.data.salary, '$', 0) + ')';
}
return text;
},
padding: 10,
tooltip: {
renderer: 'onTooltip'
},
store: 'MyTreeStore',
nodeRadius: 10,
nodeSize: [
300,
40
],
colorAxis: {
field: 'id'
},
interactions: {
type: 'panzoom',
zoom: {
extent: [
0.3,
3
],
doubleTap: false
}
}
}
]
});
I think I changed the nodeRadius and nodeSize, result:
http://prntscr.com/ga1cyg