Skip to content

Instantly share code, notes, and snippets.

@savelee
Last active September 21, 2017 07:00
Show Gist options
  • Save savelee/e41e06bb52e52669eb696d868593489a to your computer and use it in GitHub Desktop.
Save savelee/e41e06bb52e52669eb696d868593489a to your computer and use it in GitHub Desktop.
Ext JS 6.2 - Extend from D3 base class example
Ext.define("Engine.view.charts.MyD3Chart",{
extend: "Ext.panel.Panel",
xtype: 'myd3chart',
requires: [
'Ext.d3.svg.Svg'
],
layout: 'fit',
scrollable: true,
items: [{
xtype: 'd3',
cls: 'chart',
listeners: {
scenesetup: function (component, scene) {
//custom D3 stuff here
}
}
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment