Unplanned
Last Updated: 14 Sep 2023 07:56 by Martin Ivanov

In some cases the CartesianGridLineAnnotation can be offset with a single pixel from the expected position on the axis. For example, if the annotation is positioned at value 0 and there is a tick, a offset between the tick and the annotation can be observed.

To work this around, you can manually offset the annotation by setting its Top Margin.

<telerik:CartesianGridLineAnnotation Margin="0 1 0 0"/>

Unplanned
Last Updated: 16 Nov 2022 13:48 by Ashraf
The series are not rendered as expected when using Direct2DRenderOptions and hiding labels (by setting the LabelInterval, SmartLabelsMode or via a different approach)
Unplanned
Last Updated: 29 Jul 2022 08:11 by ADMIN
Created by: Nazar
Comments: 4
Category: ChartView
Type: Bug Report
1

The problem arises when we have many graphs on one window and when we scroll to the bottom then to the middle of the window and then resize the width of the window, not all graphics dynamically resize, some harden to the previous size.

I am attaching a project in which you can reproduce the problem.

And I am attaching a video where the problem is clearly demonstrated.

Please solve the problem as soon as possible for our product it is critical!

Unplanned
Last Updated: 18 Oct 2021 12:35 by Guido
Created by: Guido
Comments: 3
Category: ChartView
Type: Bug Report
1

When a chart have long labels on the X axis (like date and time) the zoom is not accurate on the horizontal extents with both mouse wheel and drag area.

The reason is probably that the screen coordinates of the selected area are not mapped correctly on the X axis. The mapping works fine for tooltip.

 

You can verify this behavior in the attached Solution. In the images you can see the selected area (01), that the zoomed area is a region with no points (02) and the actual position of the points.

 

Unplanned
Last Updated: 23 Mar 2018 12:53 by ADMIN
This reproduces when the axis' SmartLabelMode is enabled. For example, set to SmartStep. 

See the attached video.

As a workaround you can disable the smart label mode and manually calculate the range when zooming. You can use its Minimum, Maximum, MajorStep and MajorStepUnit properties.
Unplanned
Last Updated: 28 Jul 2017 11:50 by ADMIN
The exception is reproduced only if the Visibility is initially bound to a property that returns Collapsed.

This can be reproduce with the chart indicators that derives from LineIndicatorBase. For example, MovingAverageIndicator or MomentumIndicator.

To resolve this you can bind the Opacity property instead of Visibility.
Unplanned
Last Updated: 21 Jun 2017 11:08 by ADMIN
This is reproducible only when the chart's automation peers are used. For example, they are used by default when you use the chart on a touch screen. Or when an accessibility tool is used on the application with the chart.

You can work it around by disabling the auto peers (http://docs.telerik.com/devtools/wpf/common-ui-automation).

AutomationManager.AutomationMode = AutomationMode.Disabled;
Unplanned
Last Updated: 02 Feb 2017 12:19 by ADMIN
The exception is reproducible when the chart contains series with RenderOptions=Direct2DRenderOptions.

The error message is:

HRESULT: [0x8876086A], Module: [SharpDX.Direct3D9], ApiCode: [D3DERR_NOTAVAILABLE/NotAvailable], Message: Unknown
Unplanned
Last Updated: 13 Jan 2017 13:53 by ADMIN
Some of the data points plotted in the chart are not positioned as expected in a scenario with DateTimeContinuousAxis with SmartLabelsMode=SmartStep and PlotMode=OnTicksPadded or BetweenTicks.
Unplanned
Last Updated: 03 Jan 2017 21:22 by ADMIN
Workaround: Bind the UpStroke and DownStroke properties of the Candlestick via custom style (which is set to the DefaultVisualStyle property) to properties from the model. Then in the setter of the Close property, can set different color depending on whether the Close is less than Open property.
Unplanned
Last Updated: 04 Jan 2017 07:22 by ADMIN
In a multiple series scenario if one series gets removed, an internal axis flag is incorrectly reset resulting in the horizontal axis displaying only one label when SmartLabelsMode is used. One way to work-around this is to add an empty dummy series after removing a real series:

            this.chart1.Series.Remove(EmptyDummySeries);
            if (this.chart1.Series.Count > 0)
            {
                this.chart1.Series.RemoveAt(this.chart1.Series.Count - 1);
                if (this.chart1.Series.Count > 0)
                {
                    this.chart1.Series.Add(EmptyDummySeries);
                }
            }
Unplanned
Last Updated: 03 Jan 2017 21:12 by ADMIN
Depending on the zoom level and height of chart, sometimes the first (bottom) label of the chart is not rendered when the vertical axis is a categorical one and the plot mode is BetweenTicks or OnTicksPadded. 
Unplanned
Last Updated: 04 Jan 2017 07:34 by ADMIN
MovingAverageIndicator doesn't recalculate its data points when a new item is added in its ItemsSource at runtime

Workaround:
To update the data points of the indicator reset its Period property when a new item is added in the ItemsSource. For example:

// add new item
var indicator = chart.Indicators[0] as MovingAverageIndicator;
var period = indicator.Period;
indicator.Period = 0;
indicator.Period = period;
Unplanned
Last Updated: 03 Jan 2017 21:14 by ADMIN
Workaround:
One way to work around this is to set the plot mode of the axis to OnTicksPadded. 
Unplanned
Last Updated: 04 Jan 2017 07:16 by ADMIN
The data points are not rendered when the series' axis is set at runtime through a DataTrigger in the series' style. 

Note: The data points are rendered when the chart is resized or zoomed.

Workaround:
Change the resource type in the DataTrigger that changes the axis - instead of DynamicResource, use StaticResource. 

<telerik:CategoricalSeriesDescriptor.Style>
    <Style TargetType="telerik:LineSeries">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=Axis}" Value="Left">
                <Setter Property="VerticalAxis" Value="{StaticResource AxisLeft}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Axis}" Value="Right">
                <Setter Property="VerticalAxis" Value="{StaticResource AxisRight}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
</telerik:CategoricalSeriesDescriptor.Style>
Unplanned
Last Updated: 03 Jan 2017 20:54 by ADMIN
When the values of the data points have great values and the axis has a very small manual range, the Path element does not render correctly and is at times not visible at all.

Workaround:
A possible way to resolve this is to use the Direct2DRenderOptions. The different render modes use a completely different rendering logic.
<telerik:LineSeries.RenderOptions>
 <telerik:Direct2DRenderOptions />
</telerik:LineSeries.RenderOptions>
Unplanned
Last Updated: 03 Jan 2017 20:54 by ADMIN
When there is defined a ChartPanAndZoomBehavior and the axes of the chart are switched at run-time, the orientation of the PanZoomBar elements it is not changed.

Workaround:
Get the PanZoomBar element and set its Orientation property.

private void TrySetOrientation(CartesianAxis axis, Orientation orientation)
{
    var panZoomBar = Telerik.Windows.Controls.ChildrenOfTypeExtensions.FindChildByType<PanZoomBar>(axis);
    if (panZoomBar != null)
    {
        panZoomBar.Orientation = orientation;
    }
}

private void SwapAxes()
{           
    // Swapping code here

    this.Dispatcher.BeginInvoke((Action)(() =>
    {
        this.TrySetOrientation(this.chart.HorizontalAxis, Orientation.Horizontal);
        this.TrySetOrientation(this.chart.VerticalAxis, Orientation.Vertical);
    }));
}
Unplanned
Last Updated: 03 Jan 2017 21:22 by Magnus
Create  a chartview with a linear axis, set minvalue to 2014-11-21, max = 2014-11-24, create a series with only one datapoint with a date=2014-11-23.
The barchart graph will show a nice bar, but the X-axis will show you 2014-11-21, although the datapoint is for 2014-11-23!
Unplanned
Last Updated: 03 Jan 2017 21:10 by ADMIN
Workaround:
The issue is caused by the MajorTickInterval property, so one way to go is to remove this setting and use the LabelInterval instead. This will plot more ticks than before, but should eliminate the label clip. If the number of ticks bothers you, you can set the MajorTickLength property of the axis to 0 (so that the ticks are not visible) and use a LabelTemplate in which you will include a label and a tick. 

Another, simpler, work-around is to set a right margin of the chart and set the ClipToBounds property of the chart to false.
Unplanned
Last Updated: 03 Jan 2017 20:37 by ADMIN
1 2