object IDataSourceRenderer.Preamble(IChartRenderContext icrc) { if (ValueAxis == null || CategoryAxis == null) { return(null); } if (BindPaths == null || !BindPaths.IsValid) { return(null); } ResetLimits(); var paths = ItemState.Select(ms => ms.Elements).SelectMany(el => el).Select(el => el.Item2); var recycler = new Recycler <Path, SeriesItemState>(paths, CreatePath); return(new State(new List <SeriesItemState>(), recycler, BindPaths)); }
object IDataSourceRenderer.Preamble(IChartRenderContext icrc) { if (CategoryAxis1 == null || CategoryAxis2 == null) { return(null); } if (BindPaths == null || !BindPaths.IsValid) { return(null); } ResetLimits(); var paths = ItemState.Select(ms => ms.Element).Where(el => el != null); var recycler = new Recycler <Path, ItemState <Path> >(paths, CreatePath); return(new RenderState_Heatmap <ItemState <Path>, Path>(new List <ItemState <Path> >(), recycler, BindPaths)); }
object IDataSourceRenderer.Preamble(IChartRenderContext icrc) { if (ValueAxis == null || CategoryAxis == null) { return(null); } if (BindPaths == null || !BindPaths.IsValid) { return(null); } ResetLimits(); var paths = ItemState.Select(ms => ms.Element); var recycler = new Recycler <Image, ItemState <Image> >(paths, CreateElement); return(new RenderState_ValueAndLabel <ItemState <Image>, Image>(new List <ItemState <Image> >(), recycler, BindPaths)); }
object IDataSourceRenderer.Preamble(IChartRenderContext icrc) { if (String.IsNullOrEmpty(ValuePath)) { return(null); } var by = new BindingEvaluator(ValuePath); var paths = ItemState.Select(ms => ms.Element); var recycler = new Recycler <Path, ItemState <Path> >(paths, CreatePath); Generator.Reset(); return(new State(new List <ItemState <Path> >(), recycler, null, !String.IsNullOrEmpty(ValueLabelPath) ? new BindingEvaluator(ValueLabelPath) : null, by, !String.IsNullOrEmpty(ValueLabelPath) ? new BindingEvaluator(ValueLabelPath) : null )); }