Charts are visual representations for data visualization, in which the data is represented by symbols. They are often used because they are easier to read than the raw data.
To include a chart into your application developed with UiPath Apps, follow the procedure below.
Prerequisites
Before including a chart into your application, you must have:
- A chart template in Excel.
- The
UiPath.Excel.Activities.Business.CopyChartToClipboardX
activity installed and configured. For more information, see Get Excel Chart. - The
UiPath.Core.Activities.LoadImage
activity installed and configured. For more information, see Load Image.
Procedure
- Add a required chart with the needed data in an Excel sheet.
- Use the
Get Excel Chart
activity to save the chart. - Save the chart as a picture.


- Use the
Load Image
activity and reference the chart image location. - Convert the chart image to
base64
. - Prefix the
base64
string with the following:data:image/png;base64,
. - Pass the string as an out argument of your choice.
- Add the out argument in the Url field of your image control.


Result
The sequence in UiPath Studio should be similar to the one in the image below.


Your chart is now included into the application.


Updated about a month ago