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

Couples questions concerning chart

11 Answers 168 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Enill
Top achievements
Rank 1
Enill asked on 20 Apr 2010, 06:47 PM
Hi,
i actually have a couples questions concerning RadChart and since i am still pretty new i have difficulties to find the answer to these questions by myself.

1) Is it possible to have multiple Axis legend on both side of a radchart? exemple: on the left of the chart we have informations concerning the numbers(0,10,20...90,100, etc...) and on its left we have another with informations like(a,b,c,d,e, etc...), same for the right side.

2) Is it possible to apply texture, from an image, to a slice of a pie or dougnut? 2D and 3D?

3) Lets say i have two line, one is horizontal and positioned in the middle of my chart, the second line is diagonal and crossing that first line. Is it possible to make it so, all the area below the part of the second line that is crossing the horizontal one be colored in all its area?

4) How can i make a blur effect around a line?

Actually, i am not looking for completes answers necessarily, but i am taking hints and direction to where to look exactly for informations.

Thanks in advance.

11 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 23 Apr 2010, 01:01 PM
Hi Enill,

1) Unfortunately this is not possible.

2) Sure using the MVVM parttern and/or retemplating

3) I am not sure I understand the question. Can you provide a simple sketch/picture of what you want to do?

4) You can re-template the line series and use a shader effect.

Sincerely yours,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Enill
Top achievements
Rank 1
answered on 23 Apr 2010, 02:23 PM
Thanks for the reply,
i attached an image representing the question #3.

Thanks in advance.
0
Enill
Top achievements
Rank 1
answered on 26 Apr 2010, 01:16 AM
Also, do you have a concrete exemple for this: "4) You can re-template the line series and use a shader effect."

Thanks.
0
Vladimir Milev
Telerik team
answered on 27 Apr 2010, 08:45 AM
Hello Enill,

Thanks for the clarification. 3) Is not available out of the box, but you can simulate the shaded area using the Range Series.

Unfortunately we have no example for 4). But this should be straightforward. We use Rectangle in the bar series tempalte for example which inherits from UIElement. UIElement has the Effect property so everything in our templates can be customized with a shader effect.

Kind regards,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Enill
Top achievements
Rank 1
answered on 02 May 2010, 04:45 PM
Thanks, i'll try your suggestions.
0
Enill
Top achievements
Rank 1
answered on 06 May 2010, 10:37 PM
Can you please clarify: "2) Sure using the MVVM parttern and/or retemplating"?

I am not sure what is MVVM exactly, i'm still pretty new with silverlight.

Applying texture on the different slice of a doughnut/pie is definitivly something our company needs. Do you have a working example of applying an image on a specific pie/doughnut slice using C# code?(no XAML).

Thanks in advance if you can help with this.

0
Vladimir Milev
Telerik team
answered on 11 May 2010, 12:41 PM
Hello Enill,

I meant something like what we have done in this example. It uses a ViewModel and custom template to achieve the desired effect. This approach can be extended quite easily.

You can use RadChart.CreateItemStyleDelegate to apply style to any specific series item.
Another way is through defining your palette brush:

<control:RadChart x:Name="RadChart1">
            <control:RadChart.PaletteBrushes>
                <ImageBrush ImageSource="castle_ruins_1600x1200.jpg" />
            </control:RadChart.PaletteBrushes>
        </control:RadChart>



All the best,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Enill
Top achievements
Rank 1
answered on 12 May 2010, 03:16 AM
Thanks for the reply.

About "4) You can re-template the line series and use a shader effect."

Actually what i am trying to do is pretty simple.

Lets say i have one line, i want to add a 5% "visual" margin over and under the line, by visual i mean a kind of blur effect.

Exemple: Lets say i take a random point in my line where the Y value is 100, i want to add 5% error margin value so the beginning and ending of this margin would be 100 * 1.05 and 100 * 0.95 where the line itself stay in the middle.

I tried by creating a line with 2 additionnal lines(one over and one under the first line) with exactly the same direction but different Y value than the first line and then changing the first and second line to areaseries so it could fill the gaps under and over the first line but without success.

Do you have a C# code example on how to accomplish this?

I attached an image so you can understand better.

The red on the image is representing the 5% margin, this is actually what i am looking to do but without seeing the top and bottom line.

Thanks in advance!
0
Vladimir Milev
Telerik team
answered on 17 May 2010, 09:34 AM
Hi Enill,

This is not really a feature of the chart, but here is an idea - you can use two lines, one on top of the other like this:

<Line Y1="0" Y2="300" X1="0" X2="300" Stroke="Blue" StrokeThickness="10" />
<Line Y1="0" Y2="300" X1="0" X2="300" Stroke="Red" StrokeThickness="2" />

They have the same X and Y coordinates, but different stroke thickness and stroke. The top one draws the "error margin" while the bottom one draws the real data.

Best wishes,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Enill
Top achievements
Rank 1
answered on 17 May 2010, 12:09 PM
Not a bad idea at all, i'll try that.

Thanks you!
0
Enill
Top achievements
Rank 1
answered on 17 May 2010, 12:09 PM
Not a bad idea at all, i'll try that.

Thanks you!
Tags
Chart
Asked by
Enill
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Enill
Top achievements
Rank 1
Share this question
or