Using Images From UE Assets

How to embed and reference chart images from UE project assets

Step By Step Guide: How to embed and reference chart images from UE project assets

How to embed and reference chart images from UE project assets.

Using a Pie Chart with BP_Preview Controller, we need some images  and then connect those images to the chart

1 Using a Pie Chart with BP_Preview Controller, we need some images and then connect those images to the chart. Within Content Browser naviaget to a folder with Images - in this instance it is 'Images' with four images named TEAM_1 to TEAM_4

Settings>Project Settings>Idonix - Image Cache: Adding images to Preloaded Images

2 Via UE Settings, Project Settings - below Plugins: select 'Idonix - Image Cache' and then below 'Preloaded Images', below 'Project Images' we can add the link to the TEAM images in the 'Images' folder. Using the '+' icon (Add Elements), from the dropdown select the image. Add TEAM_1 to TEAM_3

Original texture asset name, is the name in 'Preloaded Images' and in the JSON

3 Looking at the sample JSON file it important to note that the original texture asset name (e.g. TEAM_1) becomes the name in 'Preloaded Images' and has to be the same name in the JSON when being referenced by ImageKey

With the BP_PieChart_PreviewJSONController selected copy the JSON into Graphic Data - JSON Data

4 In World Outliner, select the BP_PieChart_PreviewJSONController then below Details, copy the JSON into Graphic Data - JSON Data.
You can now 'Animate' and the images will map to the three pie sections in the data.