Stackbar type Static data

Thread is closed for posting
3 posts, 0 answers
  1. Watit
    Watit avatar
    37 posts
    Member since:
    Oct 2011

    Posted 03 Dec 2012 Link to this post

    How can i do?
    set stacked follow picture
    and set value in bar aligh left and right
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Dec 2012 Link to this post

    Hi Watit,

    I suppose you want to align the RadChart horizontally. Try setting  SeriesOrientation property of RadChart to Horizontal.

    <telerik:RadChart ID="RadChart1" runat="server" SeriesOrientation="Horizontal">

    Please elaborate your scenario if it doesn't helps.

  3. Watit
    Watit avatar
    37 posts
    Member since:
    Oct 2011

    Posted 12 Dec 2012 Link to this post

    I try to do
    but don't know guid line to to this

    • How can i set Condition to show Red or Green Value?
    • How to Set align Label in Bar  Left or Right?

    this is my exam code

    This my demo

    public void loadStackChart()
     ChartSeries series1 = new ChartSeries();
            series1.AddItem(10, "10", Color.Red);
            series1.AddItem(20,"20", Color.Red);
            series1.AddItem(30, "30", Color.Red);
            series1.AddItem(40, "40", Color.Red);

            ChartSeries series2 = new ChartSeries();
            series2.AddItem(50, "50", Color.Green);
            series2.AddItem(60, "60", Color.Green);
            series2.AddItem(70, "70", Color.Green);
            series2.AddItem(80, "80", Color.Green);

            //series1.Items[0].Appearance.FillStyle.MainColor = Color.Green;
            //series1.Items[0].Appearance.FillStyle.SecondColor = Color.DarkSeaGreen;
            //series1.Items[0].Label.Appearance.LabelLocation = StyleSeriesItemLabel.ItemLabelLocation.Inside;
            //series1.Items[0].Label.Appearance.Position.AlignedPosition = AlignedPositions.BottomLeft;

            RadChart1.AutoLayout = true;

            RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal;

Back to Top