Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3851 in Sprint 30.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    32
    Vote Rating
    0
    afleming is on a distinguished road

      0  

    Default ST 2.1 - Right axis titleMargin property not working properly

    ST 2.1 - Right axis titleMargin property not working properly


    Basically, when you set 'titleMargin' on a left axis, padding is added to the right of the Title, so it pushes it away from the data point labels. Problem is, it does the same thing on a right axis - it adds padding to the right side of the title, which pushes everything left.

    Code:
    axes: [{
                    type: 'numeric',
                    position: 'right',
                    title: {fontSize: 17, fontFamily: 'Helvetica'},
                    titleMargin: 90,
                    minimum: 0,
                    label: {
                        x: -1, y: 0,  textBaseline: 'middle', textAlign: 'center', fontSize: 12, fontFamily: 'Helvetica'
                    }
                    //minZoom: 1,
                    //maxZoom: 10
                    //maximum: 100,
                    //dashSize: 6,
                    //increment: 5,
                    //majorTickSteps: 11,
                    //minorTickSteps: 1,
                }, {
                    type: 'category',
                    position: 'bottom',
                    fields: ['label'],
                    title: '',
                    //minZoom: 1,
                    //maxZoom: 10
                }, {
                    type: 'numeric', 
                    position: 'left',
                    fields: ['studentCountAvg'],
                    title: {fontSize: 15, fontFamily: 'Helvetica', text: 'Average Test Taking Students per Time Period'},
                    titleMargin: 20,
                    minimum: 0,
                    label: {
                        x: 1, y: 0,  textBaseline: 'middle', textAlign: 'center', fontSize: 12, fontFamily: 'Helvetica'
                    }
                }]

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,117
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    32
    Vote Rating
    0
    afleming is on a distinguished road

      0  

    Default


    Hi! Could I get an update on this bug? I downloaded and am running 2.1.1, and it isn't fixed yet. It looks like ussing the 'titleMargin' config with a title on a left axis is giving both right and left margin, whereas on the right axis, the title only gets right margin. Thanks!