-
Notifications
You must be signed in to change notification settings - Fork 4
/
SankeyItemMetadata.cs
40 lines (39 loc) · 1.4 KB
/
SankeyItemMetadata.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.ComponentModel;
using DevExpress.DashboardCommon;
namespace DevExpress.DashboardWin.CustomItemExtension {
[
DisplayName("Sankey"),
CustomItemDescription("Create a Sankey diagram dashboard item and insert it into the dashboard.\n\nThe Sankey diagram visualizes data as weighted flows or relationships between nodes."),
CustomItemImage("DevExpress.DashboardWin.CustomItemExtension.Images.SankeyCustomItem.svg")
]
public class SankeyItemMetadata : CustomItemMetadata {
[
DisplayName("Weight"),
EmptyDataItemPlaceholder("Weight")
]
public Measure Weight {
get { return GetPropertyValue<Measure>(); }
set { SetPropertyValue(value); }
}
[
DisplayName("Target"),
EmptyDataItemPlaceholder("Target"),
SupportColoring(DefaultColoringMode.None),
SupportInteractivity
]
public Dimension Target {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[
DisplayName("Source"),
EmptyDataItemPlaceholder("Source"),
SupportColoring(DefaultColoringMode.Hue),
SupportInteractivity
]
public Dimension Source {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
}
}