This is a migrated thread and some comments may be shown as answers.

How to get shadow effect/ auto opacity change in AreaSeries chart

2 Answers 76 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Suresh
Top achievements
Rank 1
Suresh asked on 03 Aug 2012, 10:36 PM
Hi,



I created an Area chart with our own palette colors. Now if one series data point went under the other series data points. I couldn't see the shadow kind of effect under the higher values series.



But If I use the default pallet , I am seeing that shadow effect by automatic change in Opacity. How  to achieve the same thing with our own palette colors?



Attached the screen shot for more clarity. First one is the one with default palette. Second one is with our own palette colors.



Thanks,

Suresh

2 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 07 Aug 2012, 03:20 PM
Hi Suresh,

Thank you for contacting us.

You may simply specify Opacity to your custom colors - that is the way our default palette is implemented. There is no additional logic for auto-opacity change/update.

I hope this helps. Let me know if I can assist you in some other way.

Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Simon
Top achievements
Rank 1
answered on 09 Oct 2017, 11:09 PM

Hello,

I am creating Area Chart using AreaSeries and I wanna display border shadows

By the way, I can see BorderTopShadowColor, BorderLeftShadowColor, ... properties.. Are these ones be able to be used to draw shadow bordered chart?

I am attaching my code here.. but this does not work at all.

 AreaSeries areaSeries = new AreaSeries();
            areaSeries.Spline = true;
            areaSeries.CategoryMember = "Category";
            areaSeries.ValueMember = "Value";
            areaSeries.DataSource = model.Data2;
            areaSeries.PointSize = new SizeF(1, 1);
            areaSeries.BorderColor = Color.FromArgb(30, 136, 229);
            areaSeries.BackColor = Color.FromArgb(120, Color.FromArgb(30, 136, 229));

            areaSeries.BorderBoxStyle = BorderBoxStyle.FourBorders;

            areaSeries.BorderTopShadowColor = Color.Black;
            areaSeries.BorderLeftShadowColor = Color.Black;
            areaSeries.BorderRightShadowColor = Color.Black;
            areaSeries.BorderBottomShadowColor = Color.Black;
            areaSeries.BorderTopWidth = 10;
            areaSeries.BorderRightWidth = 10;
            areaSeries.BorderBottomWidth = 10;
            areaSeries.BorderLeftWidth = 10;
            areaSeries.BorderDrawMode = BorderDrawModes.HorizontalOverVertical;

            this.radChartView2.Series.Add(areaSeries);


Please help me.

thanks

 

Tags
Chart for XAML
Asked by
Suresh
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Simon
Top achievements
Rank 1
Share this question
or