I am trying to plot a TreeMap with negative values for the Size. And I am getting an error. Is it not possible to plot negative values.
The TreeMap is a control that displays hierarchical data as
a collection of nested rectangles whose area (and other properties) is
proportional to selected metrics within that data. TreeMap control shipts with
Silverlight 3 Toolkit.
Crating Silverlight Project
Fire up Blend 3 and create a Silverlight Application. Name
it as TreeMapInSL3.
Go ahead and find the control in Asset Library. You will get
the below result.
Add this control to your application.
We need sample data for displaying in TreeMap so add a class
named DriveData.cs.
Now add the code to the Class you just created.
publicclassDriveData
{
publicstring DataType { set;
get; }
publicdouble SizeOccupied { set;
get; }
publicstring ToolTip
{
get
{
return
DataType + ": " + SizeOccupied + " GB";
}
}
}
Now add a
DataGrid to your application, it has nothing to do with TreeMap. DataGrid is
for displaying the sample data only.
Davronbek UmirovPosted Jun 28, 2016, 6:22 AM
Awesome
jai SriniPosted Jun 14, 2011, 3:21 PM
I am trying to plot a TreeMap with negative values for the Size. And I am getting an error. Is it not possible to plot negative values.