none
Unable to produce graph -"DataVisualization.dll"

    General discussion

  • Hello. 

    I am using the DataVisualization dll (Silverlight 3 version) by David Anson and everything appears to be working well except the ability to show the actual data points (a white square appears on the screen with a single dot irrespective of the data points I provide) Does anybody know how to resolve? I have pasted some key components of the code. Many thanks

    MainPage.xaml

       xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:chartprimatives="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
            <charting:Chart x:Name="Chart">
    <charting:AreaSeries
    ItemsSource="{Binding}"
    IndependentValuePath="X"
    DependentValuePath="Y" />
    </charting:Chart>
    
    
    MainPage.xaml.cs
            // Constructor
    public MainPage()
    {
    InitializeComponent();
    this.Chart.DataContext = new Point[] { new Point(2, 2) };
    }
    
    
    Friday, April 20, 2012 6:57 PM