Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Very large (width) chart renders with aliasing

$
0
0

Hi,

Here's a repro app : a long table of values (200 values=8000pixels) that I can horizontally scroll.
I'd like to put below a chart using those figures. Everything works great except that it renders poorly : my series is totally aliased with the stretching.

<ScrollViewerHorizontalScrollMode="Enabled"HorizontalScrollBarVisibility="Auto"VerticalScrollMode="Disabled"VerticalScrollBarVisibility="Disabled">
    <StackPanel>
        <ItemsControlx:Name="Items"ItemsSource="{Binding Path=DataSource}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanelOrientation="Vertical"Width="40">
                        <TextBlockText="{Binding Path=Category}"/>
                        <TextBlockText="{Binding Path=Value}"/>
                    </StackPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanelOrientation="Horizontal"/>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
        <chart:RadCartesianChart>
            <chart:RadCartesianChart.HorizontalAxis>
                <chart:CategoricalAxis/>
            </chart:RadCartesianChart.HorizontalAxis>
            <chart:AreaSeriesItemsSource="{Binding Path=DataSource}">
                <chart:AreaSeries.VerticalAxis>
                    <chart:LinearAxisMinimum="0"Maximum="100"Visibility="Collapsed"/>
                </chart:AreaSeries.VerticalAxis>
                <chart:AreaSeries.CategoryBinding>
                    <chart:PropertyNameDataPointBindingPropertyName="Category"/>
                </chart:AreaSeries.CategoryBinding>
                <chart:AreaSeries.ValueBinding>
                    <chart:PropertyNameDataPointBindingPropertyName="Value"/>
                </chart:AreaSeries.ValueBinding>
            </chart:AreaSeries>
        </chart:RadCartesianChart>
        <TextBlockText="{Binding Path=ActualWidth, ElementName=Items}"/>
    </StackPanel>
</ScrollViewer>
 

What can I do make it work correctly ?


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>