The regions of a TreeMap can be displayed as squares, horizontal rectangles or vertical rectangles. This can be changed with the help of Type property of the TreeMap. This topic uses the sample created in the Quick Start topic.
Set the Type property inside the <c1:C1TreeMap> tag, to change the type of TreeMap:
Source View |
Copy Code
|
---|---|
<c1:c1treemap id="C1TreeMap2" runat="server" height="300px" width="500px" showbackbutton="True" viewstatemode="Enabled" Type="Vertical" > |
Add the following code to the Page_Load event, to set the ShowTooltips property to true and to set the tooltip text.
C# |
Copy Code
|
---|---|
C1TreeMap1.Type = C1.Web.Wijmo.Controls.C1TreeMap.TreeMapType.Vertical; |
VB |
Copy Code
|
---|---|
C1TreeMap1.Type = C1.Web.Wijmo.Controls.C1TreeMap.TreeMapType.Vertical |
When you run the project, notice that the area of the TreeMap is divided in vertical rectangular regions, instead of square regions.