문제

I've managed to bind an amChart Line Chart to a DataTable by assigning the member DataItemsSource of the LineChartGraph to mytable.DefaultView.

I'm trying to do the same with an amChart Stock Chart. However the Graph object does not have a DataItemsSource. It has instead a DataSetID member that points to a DataSet defined as part of the StockChart control. Anyways... Any suggestion?

Thanks!

도움이 되었습니까?

해결책

After some trial and error, it turned out that you can bind ItemsSource to a DataTable. Judging by the number of responses I've gotten... it looks like not that many people use this control. It's surprising b/c it's absolutely great.. and free.

<ams:StockChart ... >
   ...
   <ams:StockChart.DataSets>
      <ams:DataSet ItemsSource="{Binding Table}" ... />
      ...
   </ams:StockChart.DataSets>
   ...
</ams:StockChart>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top