I use gridview to show multiply charts. Everything works just fine now. As long as all charts are the same. But if I wish realy dinamyc charts I have one huge problem.
For an example...there is no need, that axisX will always be DateTime. It can somethimes be Numerical, or Category. Is there any possible way to achieve this?
My current XAML code:
<GridView
x:Name="resultsGridView"
AutomationProperties.AutomationId="ResultsGridView"
TabIndex="1"
SelectionMode="Multiple"
IsSwipeEnabled="True"
IsItemClickEnabled="True"
Grid.Row="1"
ItemClick="resultsGridView_ItemClick"
ItemsSource="{Binding List}">
<GridView.ItemTemplate>
<DataTemplate>
<Charts:SfChart>
<Charts:SfChart.PrimaryAxis>
<Charts:DateTimeAxis/> //HERE -> Is possible to make this somehow dynamic?
</Charts:SfChart.PrimaryAxis>
<Charts:SfChart.SecondaryAxis>
<Charts:NumericalAxis/>
</Charts:SfChart.SecondaryAxis>
<Charts:ColumnSeries
ItemsSource="{Binding dataList}"
XBindingPath="TimeStamp"
YBindingPath="NoOfUsers">
</Charts:ColumnSeries>
</Charts:SfChart >
</DataTemplate>
</GridView.ItemTemplate>
</GridView>