Just to share with you a treemap that Andrey and Ilia built:
To make it work with Canvas_sample, you need to add the following rule in the Retail cube:
['Var %']= (['Budget'] - ['Actual']) \ ['Actual'] ;
Please find attached the HTML and controller:
treemap HTML Controller.zip (5.4 KB)
The treemap needs 2 mdx, one to build the hierarchy and one to get the data.