Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-3914 in 4.0.7.
  1. #1
    Sencha - Services Team tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,292
    Vote Rating
    6
    tobiu will become famous soon enough

      0  

    Default [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
    Best regards
    Tobias Uhlig
    __________


    Sencha Inc
    Tobias Uhlig, Solutions Engineer

    Private Projects:

    S-CIRCLES Social Network Engine
    Commercial Theming for Ext JS 3 & 4

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    6
    Vote Rating
    2
    ctavan is on a distinguished road

      1  

    Default


    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:

    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"'
            },
          }],
    I think you can pass most CSS styling options...

    Hope this helps!

    Cheers,
    Christoph

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,941
    Vote Rating
    6
    edspencer has a spectacular aura about edspencer has a spectacular aura about edspencer has a spectacular aura about

      0  

    Default


    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

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    Hi - Documentation was added for 4.0.7 on axes labels.

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    Fixed for 4.0.7. There was an Int32 casting problem. Now using Math.floor which keeps values as doubles.

  6. #6
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    16
    Vote Rating
    0
    steenole is on a distinguished road

      0  

    Default


    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

  7. #7
    Sencha User
    Join Date
    Apr 2011
    Posts
    1
    Vote Rating
    0
    Robert Huhn is on a distinguished road

      0  

    Default


    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)

  8. #8
    Ext JS Premium Member
    Join Date
    Jan 2010
    Posts
    16
    Vote Rating
    0
    steenole is on a distinguished road

      0  

    Default


    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

  9. #9
    Sencha User mberrie's Avatar
    Join Date
    Feb 2011
    Location
    Bangkok, Thailand
    Posts
    506
    Vote Rating
    13
    mberrie will become famous soon enough mberrie will become famous soon enough

      0  

    Default


    ExtJs 4.1 still uses a different font on IE7 (aka IE7 mode on IE9@Win7-x64). IE8-9 mode work OK.

  10. #10
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    720
    Vote Rating
    29
    Farish has a spectacular aura about Farish has a spectacular aura about

      0  

    Default


    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.

Similar Threads

  1. [CLOSED]Unable to change chart axis title font
    By Antronak in forum Ext:Bugs
    Replies: 3
    Last Post: 5 Jul 2012, 10:10 PM
  2. Replies: 0
    Last Post: 7 May 2011, 9:36 AM
  3. Replies: 1
    Last Post: 12 Mar 2011, 8:54 PM
  4. chart - X axis title
    By stetou in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 3 May 2010, 6:40 AM
  5. Chart Y Axis Title Orientation
    By mitchellsimoens in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 9 Oct 2009, 6:02 AM