{"id":3053,"date":"2014-03-15T03:26:46","date_gmt":"2014-03-15T03:26:46","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/15\/binding-in-wpf-toolkit-on-chart-series-collection-of-common-programming-errors-2\/"},"modified":"2014-03-15T03:26:46","modified_gmt":"2014-03-15T03:26:46","slug":"binding-in-wpf-toolkit-on-chart-series-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/15\/binding-in-wpf-toolkit-on-chart-series-collection-of-common-programming-errors-2\/","title":{"rendered":"Binding in WPF Toolkit on Chart Series-Collection of common programming errors"},"content":{"rendered":"<p>it&#8217;s my first post here so, sorry for my mistakes in advance:). Here is my problem: I am trying to build a WPF application using the MVVM pattern and I&#8217;m not ALWAYS able to load data in my chart. The only time when it works is when I use the PieSeries. In the all other cases I receive an error. What is strange is that in my designer window is amable to see my chart. Here is my code:<\/p>\n<pre><code>\n    \n    \n                                           \n            \n                \n            \n        \n    \n\n<\/code><\/pre>\n<p>In the viewModel I have among other things:<\/p>\n<pre><code>private ObservableCollection chartItems; \npublic MainWindowViewModel()\n{                       \n    chartItems = new ObservableCollection();\n\n    chartItems.Add(new ChartElement(\"da011111111111\", 3));\n    chartItems.Add(new ChartElement(\"adas111111\", 490));\n    chartItems.Add(new ChartElement(\"adas111111\", 341));\n    chartItems.Add(new ChartElement(\"adas111111\", 413));\n    chartItems.Add(new ChartElement(\"adas111111\", 143));\n}\n<\/code><\/pre>\n<p>Image with the error <img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/CLsyz.png\" \/><\/p>\n<p>Thank you in advance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>it&#8217;s my first post here so, sorry for my mistakes in advance:). Here is my problem: I am trying to build a WPF application using the MVVM pattern and I&#8217;m not ALWAYS able to load data in my chart. The only time when it works is when I use the PieSeries. In the all other [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3053","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3053"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3053\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}