-
17 May 2011 4:14 AM #1
[4.0.0] Ext.chart.axis -> title
[4.0.0] Ext.chart.axis -> title
hi team,
the title texts of chart axis use different fonts by default in IE and FF / Chrome.
Screens attached.
chartFF.png
chartIE.png
i looked through the api docs and found nothing how to change the title in general (font family, size, color etc.). any hints?
best regards
tobiu
-
31 Aug 2011 4:50 AM #2
Scraping through the code I found the undocumented config options 'label' and 'labelTitle' to be passed to Chart.axis.Axis, see the constructor in http://docs.sencha.com/ext-js/4-0/so...od-constructor
I use a config like this:
I think you can pass most CSS styling options...Code:axes: [{ type: 'Numeric', position: 'left', fields: ['y'], title: 'Y Axis Title', label: { font: '10px "Lucida Grande"' }, labelTitle: { font: '14px "Lucida Grande"' } },{ type: 'Numeric', position: 'bottom', fields: ['x'], title: 'X Axis Title', label: { font: '10px "Lucida Grande"' }, labelTitle: { font: '14px "Lucida Grande"' }, }],
Hope this helps!
Cheers,
Christoph
-
31 Aug 2011 6:40 PM #3Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
I'll see if we can get this fixed for 4.0.7, thanks for the report
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
1 Sep 2011 2:49 PM #4
Hi - Documentation was added for 4.0.7 on axes labels.
-
1 Sep 2011 2:50 PM #5
Fixed for 4.0.7. There was an Int32 casting problem. Now using Math.floor which keeps values as doubles.
-
27 Sep 2011 11:12 PM #6
Is this the same problem that causes the example charts to render with wrong fonts in IE? And is there a patch I can use, until 4.0.7 is available?
For example http://dev.sencha.com/deploy/ext-4.0...harts/Bar.html looks like this on my machine:
chart.jpg
-
11 Oct 2011 10:35 AM #7
Any news on this? My projects main user base is on IE7/IE8 and the fonts for the axis labels paying no attention to the set font has been a sticking point for months now. (same as above poster's screenshot, IE dev tools say its Arial, but the screen shows cursive script)
-
15 Mar 2012 5:45 AM #8
This does not seem to be solved in 4.0.7
This example still shows wrong font in Internet Explorer:
http://dev.sencha.com/deploy/ext-4.0...harts/Bar.html
The font used seems to be randomly selected. On one of my colleages machine, the URL uses another font...
Capture.JPG
-
15 May 2012 7:27 PM #9
ExtJs 4.1 still uses a different font on IE7 (aka IE7 mode on IE9@Win7-x64). IE8-9 mode work OK.
-
12 Nov 2012 4:52 AM #10
the problem still appears even when opening the Chart Examples of Ext JS 4.1.3 in IE8. using labelTitle as suggested above helps to get around it.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-3914
in
4.0.7.
Similar Threads
-
[CLOSED]Unable to change chart axis title font
By Antronak in forum Ext:BugsReplies: 3Last Post: 5 Jul 2012, 10:10 PM -
Ext.chart.axis.Numeric does not format axis correctly when a series has large values
By kfrencher in forum Ext:BugsReplies: 0Last Post: 7 May 2011, 9:36 AM -
[INFOREQ]Column Chart Left axis does not collapse properly (but bottom axis does)
By martin. in forum Ext:BugsReplies: 1Last Post: 12 Mar 2011, 8:54 PM -
chart - X axis title
By stetou in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 May 2010, 6:40 AM -
Chart Y Axis Title Orientation
By mitchellsimoens in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 9 Oct 2009, 6:02 AM


Reply With Quote