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

ChartView rendering issue

7 Answers 102 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 11 Oct 2012, 03:38 PM
When I have a simple chartview that has a spike in it, the spike appears to go well above the value it is intended to represent.  I'm guessing this is because the line gets vertically fatter as the slope is increased, and the value is considered on the "centerpoint" of the line. However, this can lead to extremely misleading charts.

I have attached an example where the value is supposed to be "1" but more appears to be about 1.05.

Mike

 

7 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 16 Oct 2012, 11:11 AM
Hello Michael,

You can play with the StrokeMiterLimit property of the path that draws the line. This can be achieved through the exposed StrokeShapeStyle property as follows:
<telerik:LineSeries ValueBinding="PurchasePrice" CategoryBinding="Name">
    <telerik:LineSeries.StrokeShapeStyle>
        <Style TargetType="Path">
            <Setter Property="Stroke">
                <Setter.Value>
                    <SolidColorBrush Color="{StaticResource AccentColor}" />
                </Setter.Value>
            </Setter>
            <Setter Property="StrokeThickness" Value="2" />
            <Setter Property="StrokeMiterLimit" Value="1" />
        </Style>
    </telerik:LineSeries.StrokeShapeStyle>
</telerik:LineSeries>

Unfortunately this option will be available with our next official release which will be live this week.

Greetings,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael
Top achievements
Rank 1
answered on 16 Oct 2012, 03:13 PM
Thanks, Sia.

Will this new property solve the problem? Won't the line still go above the represented y-axis value even when this is set?
0
Sia
Telerik team
answered on 17 Oct 2012, 07:40 AM
Hello Michael,

Please check the attached image. The left chart is the one without having the mentioned style set and the second one is with it. The data is the same (the max value is 100). I think that this is your problem, please let me know it I am wrong.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael
Top achievements
Rank 1
answered on 17 Oct 2012, 03:09 PM
Hi Sia,

Yes, that looks like it completely solves the issue.

Looking forward to the new release.

Thanks!
Mike
0
Sia
Telerik team
answered on 18 Oct 2012, 09:41 AM
Hi Michael,

This is to let you know that our .1017 version is already available under your account.

Greetings,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Iain
Top achievements
Rank 1
answered on 25 Nov 2013, 11:18 AM
I have the same issue but am using the ScatterLineSeries. Is there a fix using the ScatterLineSeries?
0
Peshito
Telerik team
answered on 27 Nov 2013, 09:25 AM
Hi Iain,

I have just tried to reproduce this issue with DLLs from our latest releease but to no avail. Please make sure you are using the latest version of our controls and try again. If the issue still persists, could you send us a runnable sample pointing out the issue. You can do that by either opening a support ticket thread or upload the project to a third party website for uploading and sharing files.

Regards,
Peshito
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
Michael
Top achievements
Rank 1
Answers by
Sia
Telerik team
Michael
Top achievements
Rank 1
Iain
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or