This is a migrated thread and some comments may be shown as answers.

Series label margin

1 Answer 105 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Barbaros Saglamtimur
Top achievements
Rank 1
Barbaros Saglamtimur asked on 14 Aug 2012, 07:57 AM
Hi,

I would like to snap my series-labels to x-axis or better give margin value relative to x-axis. Please see attached image. Top image is default behavior and the image at the bottom is what I would like to do.

1 Answer, 1 is accepted

Sort by
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 18 Feb 2013, 11:11 AM
Ok, here is the solution

series: [{
    type: "column",
    field: "Toplam",
    stack: false,
    labels: {
        visible: true,
        template: "#= dataItem.GroupName #",
        rotation: "270",
        position: "insideBase",
        background: "Transparent"
    }
}],

rotation: "270",
position: "insideBase",
background: "Transparent"

do the trick. I haven't test for the negative values.
Tags
Charts
Asked by
Barbaros Saglamtimur
Top achievements
Rank 1
Answers by
Barbaros Saglamtimur
Top achievements
Rank 1
Share this question
or