Jump to content
Software FX Community

TreeMap Subtext


Mick

Recommended Posts

The sample in question is shipped as part of the product and also linked from the resource center. It modifies the PointLabelAttributes template property as follows

<cfx:PointLabelAttributes.Template>

  <DataTemplate>

  <StackPanel>

  <TextBlock Text="{Binding Path=DataItem.Company}" HorizontalAlignment="Center" Foreground="Black" FontWeight="Bold" />

  <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

  <TextBlock Text="$" Foreground="Black" />

  <TextBlock Text="{Binding Path=DataItem.Price}" Foreground="Black" />

  <TextBlock Text=" (" Foreground="Black" />

  <TextBlock Text="{Binding Path=DataItem.Perc}" Foreground="Black" />

  <TextBlock Text=")" Foreground="Black" />

  </StackPanel>

  <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

  <TextBlock Text="mkt cap: $" Foreground="Black" />

  <TextBlock Text="{Binding Path=DataItem.Capital}" Foreground="Black" />

  <TextBlock Text=" bil." Foreground="Black" />

  </StackPanel>

  </StackPanel>

  </DataTemplate>

</cfx:PointLabelAttributes.Template>

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...