-
8 Jun 2011 5:10 AM #1
Ext 4 Chart Themes - where are they?
Ext 4 Chart Themes - where are they?
Hi,
I was looking at the chart examples and I saw many of them uses the 'Category2' theme, but I could not find it.
Does anyone know where I can find the declaration of this theme?Code:Ext.create('Ext.chart.Chart', { * renderTo: Ext.getBody(), * width: 500, * height: 300, * animate: true, * theme:'Category2', * store: store, * axes: [{ * type: 'Radial', * position: 'radial', * label: { * display: true * } * }],Sencha/Java evangelist
Author of ExtJS 4 First Look and Mastering Ext JS books
English blog: http://loianegroner.com
Portuguese blog: http://loiane.com
Sencha Examples: https://github.com/loiane
-
20 Oct 2011 7:42 PM #2
You can find it in the file extjs/src/chart/theme/Base.js
Code://Create theme from color array for (i = 0; i < cats; i++) { themes['Category' + (i + 1)] = (function(category) { return Ext.extend(themes.Base, { constructor: function(config) { themes.Base.prototype.constructor.call(this, Ext.apply({ colors: category }, config)); } }); })(categories[i]); }
-
14 Oct 2012 4:46 PM #3Sencha - Sales Team
- Join Date
- Mar 2007
- Location
- Melbourne, Australia (aka GMT+10)
- Posts
- 738
- Vote Rating
- 6
Charts are based on our draw library (aka SVG) so they have their own themes.
Category1 to Category6 and various others, plus you can create your own themes and apply them.
there is an example here in the docsCheck out SenchaWorld.com for articles, screencasts, conference videos and more.
Sencha Technical Training : Asia Pacific Region
Code Validation : JSLint | JSONLint | JSONPLint


Reply With Quote


