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
    https://dl.dropbox.com/u/50999266/ForWebSiteTelerik/Static%20Stackbar.jpg
  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.

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

    Please elaborate your scenario if it doesn't helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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?

    https://dl.dropbox.com/u/50999266/ForWebSiteTelerik/Static%20Stackbar.jpg

    this is my exam code

    This my demo
    https://dl.dropbox.com/u/50999266/ForWebSiteTelerik/Demo-StackedBar.jpg

    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);
            RadChart1.Series.Add(series1);

            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.Series.Add(series2);

            RadChart1.AutoLayout = true;

            RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal;
            RadChart1.DataBind();
     
    }


Back to Top