iamartyom / ColorHelper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In a LINQ statement i get the same color

DenisMtfl opened this issue · comments

When i use LINQ i get the same color for every item

Example:
datasets = viewResult.GroupBy(g => g.Name).Select(x => new { label = x.Key, backgroundColor = "#"+ColorGenerator.GetLightRandomColor<HEX>().Value, data = x.Select(x => x.Wert).ToList() })