Skip to main content

Word cloud

info

Charts are available with Avalonia Pro.

Word clouds represent text data by varying word size based on frequency or importance. They provide an immediate visual summary of qualitative content or popular topics.

Word cloud displaying words at varying font sizes based on frequency, with more prominent words appearing larger.

When to use

  • Search Trends: Visualizing the most common keywords in a query log.
  • Sentiment Analysis: Highlighting prominent words in customer reviews.
  • Content Summarization: Showing the main themes of a long article or document.

Code example

XAML

<charts:WordCloudChart Title="Popular Topics" Height="300"
ItemsSource="{Binding WordCloudData}"
WordPath="Word" WeightPath="Count"/>

Data model (C#)

public record WordItem(string Word, double Count);

public ObservableCollection<WordItem> WordCloudData { get; } = new()
{
new("Technology", 80),
new("Innovation", 65),
new("Digital", 55),
new("Cloud", 50),
new("AI", 70),
new("Data", 60),
new("Security", 45),
new("Mobile", 40),
new("Development", 35),
new("Analytics", 30),
new("Performance", 25),
new("User", 45),
new("Interface", 40)
};

Common properties

PropertyDescriptionDefault
ItemsSourceThe collection of word/weight data.null
WordPathProperty name for the actual text word.null
WeightPathNumerical property determining font size.null
MinFontSizeSmallest font size in pixels.12.0
MaxFontSizeLargest font size in pixels.48.0
MaxWordsMaximum number of words rendered.50
RotateWordsWhether some words may be rotated vertically.true