Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correlation heat map for windows presentation foundation

Does anyone knows any good tool for drawing correlation heat maps for WPF?

Example based on comments:

enter image description here

Original image source

like image 463
Xenofonte Avatar asked May 31 '11 14:05

Xenofonte


2 Answers

The free WPF Toolkit has a TreeMap. You can define it in XAML as follows:

<vis:TreeMap ItemsSource="{Binding Path=HeatMap.Sectors}"
              Interpolators="{StaticResource colourInterpolator}">
  <vis:TreeMap.ItemDefinition>
    <vis:TreeMapItemDefinition ValueBinding="{Binding MarketCap}">
      <DataTemplate>
        <Grid>
          <Border x:Name="Border"
                  BorderBrush="Black"
                  BorderThickness="1"
                  Margin="1"
                  Opacity="0.5">                      
          </Border>
          <TextBlock Text="{Binding Name}"
                     TextWrapping="Wrap"
                     FontSize="20"
                     Margin="5"
                     VerticalAlignment="Center"
                     HorizontalAlignment="Center"/>
        </Grid>
      </DataTemplate>
    </vis:TreeMapItemDefinition>
  </vis:TreeMap.ItemDefinition>
</vis:TreeMap>

The above XAML is a snippet from an application I have written that shows financial HeatMaps. You can see a Silverlight version running here:

http://www.scottlogic.co.uk/blog/colin/xaml-finance/

(Just hit the 'heatmap' button)

like image 65
ColinE Avatar answered Nov 03 '22 01:11

ColinE


If you are looking for a commercial product, I would suggest you look at the Telerik controls. Telerik has excellent controls for WPF. Included in the long list is a Heat Map control. Here is a link to the site where they list the heat map feature:

http://www.telerik.com/products/wpf/map.aspx

If you are looking to build something, here are a couple blog articles that lay out how to do it (with source provided):

http://www.garrettgirod.com/?p=111

http://www.nickdarnell.com/?p=833

like image 45
IAmTimCorey Avatar answered Nov 03 '22 00:11

IAmTimCorey