ChartView rendering issue

8 posts, 0 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Jul 2012

    Posted 11 Oct 2012 Link to this post

    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

     
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 16 Oct 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    18 posts
    Member since:
    Jul 2012

    Posted 16 Oct 2012 Link to this post

    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?
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 17 Oct 2012 Link to this post

    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.

  6. Michael
    Michael avatar
    18 posts
    Member since:
    Jul 2012

    Posted 17 Oct 2012 Link to this post

    Hi Sia,

    Yes, that looks like it completely solves the issue.

    Looking forward to the new release.

    Thanks!
    Mike
  7. Sia
    Admin
    Sia avatar
    667 posts

    Posted 18 Oct 2012 Link to this post

    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.

  8. Iain
    Iain avatar
    1 posts
    Member since:
    Sep 2013

    Posted 25 Nov 2013 Link to this post

    I have the same issue but am using the ScatterLineSeries. Is there a fix using the ScatterLineSeries?
  9. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 27 Nov 2013 Link to this post

    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 >>
Back to Top
UI for WPF is Visual Studio 2017 Ready