Hello,
I want to design a stacked column chart like below one. Is it possible?. If is it possible then how can i acheive this. It's very urgent. so, please kindly share your ideas.
Thanks
Great! that worked! thanks!
Make sure chart.Axis.Y.Labels.HorizontalAlign is set to Far
Great! Thanks that worked. The chart comes up beautifully now except for the Y Axis... the data points still seem to be merged with the X Axis itself... is there a way to move the data points a little to the left so that they dont intersect with the axis?
I think you're seeing the extra axis labels and the extra axes, because you have made them visible either somewhere else in code, or in the designer. I suggest resetting axis properties, or setting Y2 and X2 axes to not visible.Here's a simple code example that generates a stacked column chart with a legend:DataTable dt = new DataTable();dt.Columns.Add("Value1", typeof(int));dt.Columns.Add("Value2", typeof(int));dt.Columns.Add("Value3", typeof(int));dt.Columns.Add("Label", typeof(string));
dt.Rows.Add(new object[] { 1, 1, 1, "Jan" });dt.Rows.Add(new object[] { 2, 1, 2, "Feb" });dt.Rows.Add(new object[] { 4, 4, 2, "Mar" });dt.Rows.Add(new object[] { 1, 3, 1, "Apr" });
ultraChart1.ChartType = ChartType.StackColumnChart;ultraChart1.ColumnChart.ColumnSpacing = 1;
ultraChart1.Axis.X.Labels.SeriesLabels.Orientation = TextOrientation.VerticalLeftFacing;ultraChart1.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:0>";
ultraChart1.Legend.Visible = true;
ultraChart1.Data.DataSource = dt;ultraChart1.Data.DataBind();
Hi Max,
Please check out the attached chart. Currently the Y Axis shows decimal places which I need to remove and comes on both sides of the graph whereas I want it only on the left.
Also there seems to be several words that are coming on top of the graph by default (right above the 698). I am unsure as to why this is happening.
And I am not able to see the default legend in my chart too. I have attached the code I am using in my previous post.
Please advise. Thanks again!
Sharad