Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Orient labels vertically, along a bar?

Sort Posts: Previous Next
  •  02-04-2008, 4:18 AM Post no. 6582

    Orient labels vertically, along a bar?

    Hi!

    Is it possible to orient a label for a barseries bar vertically, along the bar, so it looks like the label i written on the bar. I hope you understand what I mean.

    //Cheers!
  •  02-05-2008, 4:00 PM Post no. 6583 in reply to 6582

    Re: Orient labels vertically, along a bar?

    Here is some code to write the labels vertically and centered:

    <code>
    Chart m_chart = ChartServerControl1.Charts[ 0 ];
    BarSeries m_bar = ( BarSeries )m_chart.Series.Add( SeriesType.Bar );

    m_bar.Values.FillRandomRange( 5, 20, 100 );

    m_bar.DataLabels.VertAlign = Xceed.Chart.GraphicsCore.VertAlign.Center;
    m_bar.DataLabels.ArrowLength = 0;
    m_bar.DataLabels.Text.Orientation = 90;
    </code>
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.