jQuery UI Widgets Forums Chart rotating bar chart labels on bars

This topic contains 1 reply, has 2 voices, and was last updated by  yoda 9 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • rotating bar chart labels on bars #70161

    rtessler
    Participant

    I would like to be able to rotate the chart labels (ie the labels on bar chart bars)
    when i have tool many bars in my barchart the labels get jumbled

    series: [
    showLabels: true,
    labels: {textRotationAngle: 90},

    has no effect

    rotating bar chart labels on bars #70162

    yoda
    Participant

    According to the API doc the property name is ‘angle’. Just replace textRotatioAngle with angle and it should work for you.
    Here’s how I use it in one of my charts:

         seriesGroups: [{
             type: 'column',
             valueAxis: {
                 title: {text: 'Price'}
             },
             series: [{
                 dataField: 'Purchase',
                 labels: {visible: true, angle: 90}
             }, {
                 dataField: 'Sale',
                 labels: {visible: true, angle: 90}
             }]
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.