Repository navigation
Expand file tree
/
Copy pathdata-label.html
More file actions
74 lines (71 loc) · 2.86 KB
/
Copy pathdata-label.html
File metadata and controls
74 lines (71 loc) · 2.86 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<div class="col-lg-9 control-section">
<div id="datalabel"></div>
</div>
<!-- Property Panel -->
<div class="col-lg-3 property-section">
<table id="property" title="Properties" style="width: 100%">
<tbody>
<tr style="height: 50px">
<td style="width: 80%">
<div>Show Labels</div>
</td>
<td>
<input type="checkbox" checked id="select" style="margin-top: 15px">
</td>
</tr>
<tr style="height: 50px">
<td style="width: 60%">
<div>Smart label mode</div>
</td>
<td style="width: 40%">
<select id="smartlabelmode" style="margin-left: -25px">
<option value="Trim">Trim</option>
<option value="None">None</option>
<option value="Hide">Hide</option>
</select>
</td>
</tr>
<tr style="height: 50px">
<td style="width: 60%">
<div>Intersect action</div>
</td>
<td style="width: 40%;">
<select id="intersectaction" style="margin-left: -25px">
<option value="None">None</option>
<option value="Trim">Trim</option>
<option value="Hide">Hide</option>
</select>
</td>
</tr>
</tbody></table>
<div id="action-description">
<p>
This sample visualizes the names of all the states in USA in data labels. Options have been provided to change the intersect action and smart labels mode of the data labels.
</p>
</div>
</div>
<div id="description">
<p>
In this example, you can see how to render the data labels for each shape in a map. Data labels are used to display the values of the shapes. You can use the <code>autoFill</code> property in the <code>shapeSettings</code> to apply the default palette colors to the shapes.
</p>
<p>
Tooltip is enabled in this example. To see the tooltip in action, hover the mouse over a shape or tap a shape in touch enabled devices.
</p>
<br/>
<p style="font-weight: 500">Injecting Module</p>
<p>
Maps component features are segregated into individual feature-wise modules. To use a data label, inject the <code>DataLabel</code> module using the <code>Maps.Inject(DataLabel)</code> method.
</p>
</div>
<style>
#control-container {
padding: 0px !important;
}
</style>
<!-- custom code start -->
<style>
#control-container {
padding: 0px !important;
}
</style>
<!-- custom code end -->