-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
Description
Assuming Data is an enumerable of dictionaries:
Data = new List<Dictionary<string, object>>
{
new Dictionary<string, object> { { "Name", "John" }, { "Height", 180 } },
new Dictionary<string, object> { { "Name", "Mary" }, { "Height", 165 } },
new Dictionary<string, object> { { "Name", "Bob" }, { "Height", 190 } }
};
I would like to bind to dictionary values:
<chart:ColumnSeries ItemsSource="{Binding Data}"
XBindingPath="[Name]"
YBindingPath="[Height]"/>
or:
<chart:ColumnSeries ItemsSource="{Binding Data}"
XBindingPath="[0]"
YBindingPath="[1]"/>
The MAUI supports such binding.
Public API Changes
<chart:ColumnSeries ItemsSource="{Binding Data}"
XBindingPath="[Name]"
YBindingPath="[Height]"/>
Intended Use-Case
Support for dynamic data.