I followed the tutorials from the Forge Data Visualization extension documentation: https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/quickstart/ on a IFC file and everything seems to work except for the coloring of the rooms, which appear like in the image below, instead of being colored.
I also tested on Revit files and the rooms are being colored properly, so this issue is specific to IFC files.
The question is what could be the cause for this behavior for the IFC files and how can I solve it?
Edit: The solution is in the comments of the accepted post.
Sorry for the late reply. After some search, I managed to reproduce a similar behavior to yours and found a solution to fix it.
In my case, the
sensorType
values I passed to DataVisualization#registerSurfaceShadingColors, DataVisualization#renderSurfaceShading, and devices'sensorType
in mylevelRoomMap
manually created by this tutorial are not using the same character case. For example, Temperature vstemperature
. After fixing the character case issue, my heatmap is redered as expected. Here is the snapshot:And here is my code snippet for your reference: