Last active
September 21, 2017 07:00
-
-
Save savelee/e41e06bb52e52669eb696d868593489a to your computer and use it in GitHub Desktop.
Ext JS 6.2 - Extend from D3 base class example
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("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