-
Notifications
You must be signed in to change notification settings - Fork 2
/
Tryout CSharp.linq
24 lines (21 loc) · 940 Bytes
/
Tryout CSharp.linq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Query Kind="Expression">
<Reference Relative="GrammarGraph.Data\bin\Debug\net8.0\GrammarGraph.Data.dll">D:\Projekte\GrammarGraph\GrammarGraph.Data\bin\Debug\net8.0\GrammarGraph.Data.dll</Reference>
<Reference Relative="GrammarGraph\bin\Debug\net8.0\GrammarGraph.dll">D:\Projekte\GrammarGraph\GrammarGraph\bin\Debug\net8.0\GrammarGraph.dll</Reference>
<Namespace>GrammarGraph</Namespace>
<Namespace>GrammarGraph.Data</Namespace>
<Namespace>GrammarGraph.Geometry</Namespace>
<Namespace>GrammarGraph.Statistics</Namespace>
<RuntimeVersion>8.0</RuntimeVersion>
</Query>
DataSets.GetDiamonds()
.Take(1000)
.OrderBy(d => d.Cut)
.ThenBy(d => d.Carat)
.CreateChart()
.SetAesthetics(AestheticsId.X, d => d.Carat)
.SetAesthetics(AestheticsId.Y, d => d.Price)
.SetAesthetics(AestheticsId.Color, d => d.Cut)
.Add(b => b.Point()
.SetAesthetics(AestheticsId.Color, d => d.Color))
.Add(b => b.Line())
.InFacets(d => d.Cut)