-
21 Dec 2012 11:27 AM #1
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' } }]
-
22 Dec 2012 7:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,117
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
-
21 Feb 2013 7:15 AM #3
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!
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3851
in
Sprint 30.


Reply With Quote