Binding the Chart to a DataTable from DataSet

Here is sample code that creates the chart from the data table. 

In Code:

      Visual Basic

      C#

In XAML:

<c1chart:C1Chart.Data>

  <c1chart:ChartData ItemNameBinding="{Binding Path=[ProductName]}">

    <c1chart:DataSeries ValueBinding="{Binding Path=[UnitPrice]}"/>

  </c1chart:ChartData>

</c1chart:C1Chart.Data>


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.