The sample looks well in Expression Blend, but it's not possible to see any charts after it was compiled with Visual Studio.
Maybe there is a problem with the data binding path.
Does anyone has an idea?
Hi,
XML data source:
<?xml version="1.0" encoding="UTF-8"?><dataroot><Table1><ID>1</ID><Name>John</Name><Price>53</Price></Table1><Table1><ID>2</ID><Name>Ed</Name><Price>68</Price></Table1><Table1><ID>3</ID><Name>David</Name><Price>29</Price></Table1></dataroot>
xaml:
<Window.Resources> <XmlDataProvider x:Key="PatientData" Source="C:\TFS\Table1.xml" /></Window.Resources>
<igCA:XamChart x:Name="Chart1"> <igCA:XamChart.Series> <igCA:Series Label="Patient Height" ChartType="Column" DataSource="{Binding Mode=Default, Source={StaticResource PatientData}, XPath=/dataroot}" DataMapping="Value=Price; Label=Name" /> </igCA:XamChart.Series></igCA:XamChart>
Thanks,GoranS
thank you very much for the answer.
Now it works fine. But is there a possibility to use relative paths?
When I use a absolute path so I have to install the application always in the same directory or set a new path before the installation.
When I use a relative path so it doesn't matter where the application was installed.
Thanks,
Juergen