Query Regarding Bar Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Planoresearch
Newbie
Newbie
Posts: 57
Joined: Thu Jun 02, 2011 12:00 am

Query Regarding Bar Chart

Post by Planoresearch » Thu Feb 09, 2012 11:58 am

Hi Steema Support,

We have a query regarding Bar chart of TeeChart Silverlight.

If we add bar chart with same X values then it stands side by side in Teechart. Once we set it stacked these bars get stacked on each other. Is there is any possible way for overlapping two Bars with each other.

For more information about query please see image bellow:
Query Bar Chart.png
Query Bar Chart.png (34.07 KiB) Viewed 12630 times
We will appreciate your suggestions.

Thanks and Regards;
Plannoresearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Query Regarding Bar Chart

Post by Sandra » Fri Feb 10, 2012 1:01 pm

Hello Planoresearch,

If you want achieve that bar overlapping you only need change the MultiperBar property default (side-to-side) to None as do in next line of code:

Code: Select all

bar1.MultiBar = Steema.TeeChart.Silverlight.Styles.MultiBars.None;
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Planoresearch
Newbie
Newbie
Posts: 57
Joined: Thu Jun 02, 2011 12:00 am

Re: Query Regarding Bar Chart

Post by Planoresearch » Sat Feb 11, 2012 8:25 am

Hi Sandra,

Thanks the reply and code provided. We will check it for our project & let you know the status.

Thanks,
Plannoresearch

Planoresearch
Newbie
Newbie
Posts: 57
Joined: Thu Jun 02, 2011 12:00 am

Re: Query Regarding Bar Chart

Post by Planoresearch » Fri Feb 17, 2012 7:48 am

Hi Sandra,


We have checked above property & it is working fine at our end.

Now one more query regarding above image, I want to implement bevel effect on these bars as already displayed in image of first post.

We will appreciate your suggestions.

Thanks and Regards;
Plannoresearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Query Regarding Bar Chart

Post by Sandra » Mon Feb 20, 2012 4:52 pm

Hello Planoresearch,

I suggest you try to use the Gradient of Bar series to achieve a similar aspect as Bubble series in the bar series. You can take a look in the TeeChart.Net Demo,concretely, All Features\Welcome !\Chart styles\Standard to get a sample how you do to change the gradient. It serve too, for Silverlight projects.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Planoresearch
Newbie
Newbie
Posts: 57
Joined: Thu Jun 02, 2011 12:00 am

Re: Query Regarding Bar Chart

Post by Planoresearch » Mon Feb 27, 2012 11:06 am

Hi Sandra,
i look this demo, All Features\Welcome !\Chart styles\Standard but i am not sure how to add the Bevel effect in my application . so please provide me other help or code for this.

Thanks

Planoresearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Query Regarding Bar Chart

Post by Sandra » Wed Feb 29, 2012 4:13 pm

Hello Planoresearch,

I think you can do something us next code:

Code: Select all

Steema.TeeChart.Silverlight.Styles.Bar bar1, bar2;
private void InitializeChart()
{
tChart1.Aspect.View3D = false; 
bar1 = new Steema.TeeChart.Silverlight.Styles.Bar(tChart1.Chart);
bar2 = new Steema.TeeChart.Silverlight.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues(4);
bar2.FillSampleValues(4);
bar1.BarStyle = Steema.TeeChart.Silverlight.Styles.BarStyles.RectGradient;

bar2.MultiBar = Steema.TeeChart.Silverlight.Styles.MultiBars.None;
//Bar1
bar1.Gradient.Visible = true;
bar1.Gradient.StartColor = Color.FromArgb(255, 0, 100, 200);
bar1.Gradient.MiddleColor = Color.FromArgb(255, 0, 100, 200);
bar1.Gradient.EndColor = Color.FromArgb(255, 0, 200, 200);
// bar1.Pen.Color = Color.FromArgb(255, 0, 100, 200);
bar1.Pen.Visible = false;
bar1.Gradient.Direction = Steema.TeeChart.Silverlight.Drawing.GradientDirection.TopBottom;
//Bar2
bar2.BarStyle = Steema.TeeChart.Silverlight.Styles.BarStyles.RectGradient;
bar2.Gradient.Visible = true;
bar2.Gradient.StartColor = Color.FromArgb(255,20, 200, 90);
bar2.Gradient.MiddleColor = Color.FromArgb(255, 20, 200, 90);
bar2.Gradient.EndColor = Color.FromArgb(255, 20, 242, 150);
// bar2.Pen.Color = Color.FromArgb(255, 20, 200, 90);
bar2.Pen.Visible = false;
bar2.Gradient.Direction = Steema.TeeChart.Silverlight.Drawing.GradientDirection.TopBottom;
bar1.Marks.Visible = false;
bar2.Marks.Visible = false;
}
Can you tell us if previous code works as you expect?

Thanks
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Planoresearch
Newbie
Newbie
Posts: 57
Joined: Thu Jun 02, 2011 12:00 am

Re: Query Regarding Bar Chart

Post by Planoresearch » Fri Mar 02, 2012 12:25 pm

Hi Sandra,
Thanks for the response,


I tried your code, everything is running fine but bevel effect is not showing in the bar, i need the bevel effect in Bar as showing in the image of my first post.


Please give us the solution to create Bevel effect in Bar,

Thanks

Planoresearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Query Regarding Bar Chart

Post by Sandra » Fri Mar 02, 2012 4:08 pm

Hello Planoresearch,

I am afraid it is not possible, as has been discussed here you only can try to achieve similar effects using Gradient.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply