Skip to content

Xamarin Forms add itemsource to var barSeries = new ColumnSeries from ObservableRangeCollection #16

Description

@ArimaSD

Hi, I want to populate itemsource items with: var items = Registrar.OrderBy(c => c.Especie).Select(x => x.Ancho).ToList();

I was thinking of something like this perhaps??

var barSeries = new ColumnSeries
{
ItemsSource = new List(new[]
{
new BarItem{ Value = Registrar.OrderBy(c => c.Especie).Select(x => x.Ancho),
},

             }),
            LabelPlacement = LabelPlacement.Inside,
            LabelFormatString = "{0}"
        };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions