Creating treemaps
Treemaps (previously called block charts in QlikView) are a good way to show how different parts combine to form a whole. To add more depth to the visualization, you can easily highlight areas of importance by adding color coding.
Getting ready
For this recipe, we will make use of inline data loading, which provides product sales information. Load the following code into the data load editor:
LOAD * INLINE [ Product Line, Product Group, Product Sub Group, Year, Sales, Cost Drink, Beverages, Juice, 2015, 12000, 6000 Drink, Beverages, Juice, 2014, 16000, 7000 Drink, Beverages, Soda, 2015, 42000, 26000 Drink, Beverages, Soda, 2014, 68000, 57000 Drink, Beverages, Water, 2015, 18000, 8000 Drink, Beverages, Water, 2014, 10000, 6000 Drink, Dairy, Milk, 2015, 25000, 22000 Drink, Dairy, Milk, 2014, 22000, 20000 Food, Dairy, Cheese, 2015, 22000, 8000 Food, Dairy, Cheese, 2014, 31000, 30000 Food, Produce, Nuts, 2015, 50000, 30000 Food, Produce, Nuts, 2014, 46000, 26000...