Forum Discussion
Plotting triangle on map?
- 2 years ago
VeljkoP98 Hello,
I am afraid that this is not possibles to do in power bi or
You can create a custom visual if any one have d3.js knowledge.
You can use python for the same.
Visualising Network Data in Power BI with Python Integration and NetworkX | Adatis
Thanks
Harish M - 2 years ago
To use a custom image as an icon in Power BI for your map visualizations, you can follow these steps:
Prepare the Custom Image:
- Create an image of the triangle you want to use. Save it in a commonly supported image format like PNG, JPG, or SVG. Make sure the background of the image is transparent.
Add a New Column for Image URL:
- In Power Query, you'll need to add a new column that contains the URL or file path to your custom image. If the image is hosted online, you can use a direct URL. If it's a local file, you'll need to place it in a location that Power BI can access.
Example:
CustomImageURL = "https://example.com/triangle.png" // Replace with the actual URL of your triangle imageUse the Custom Image in the Map Visual:
- In your report, select or add a map visual.
- Drag the field you want to use for the map onto the "Location" well of the map visual.
Switch to the "Format" Pane:
- In the visualizations pane, click on the paint roller icon ("Format") to open the formatting options.
Customize the Data Colors:
- Under "Data colors", you'll find an option for "Category (Image URL)". Click on the paintbrush icon next to it.
Enable "Image URL":
- Toggle on the "Image URL" switch.
Set the Custom Image URL Field:
- Use the field containing your custom image URL. This should be the column you created in step 2.
Adjust Icon Size:
- You can adjust the size of the icons using the "Icon size" slider under the "Shapes" section in the "Format" pane.
Additional Customizations:
- You can further customize the map visual, including the color, transparency, and tooltips associated with your data.
Preview and Save:
- Preview your map visual to ensure the custom triangle icons are displayed correctly. If satisfied, save your report.
Your map visual should now display your custom triangle icons based on the data and the URL you provided. If you need to further refine the appearance, you can use the formatting options in the "Format" pane.
If you find this insightful, please provide a Kudo and accept this as a solution.
To use a custom image as an icon in Power BI for your map visualizations, you can follow these steps:
Prepare the Custom Image:
- Create an image of the triangle you want to use. Save it in a commonly supported image format like PNG, JPG, or SVG. Make sure the background of the image is transparent.
Add a New Column for Image URL:
- In Power Query, you'll need to add a new column that contains the URL or file path to your custom image. If the image is hosted online, you can use a direct URL. If it's a local file, you'll need to place it in a location that Power BI can access.
Example:
CustomImageURL = "https://example.com/triangle.png" // Replace with the actual URL of your triangle image
Use the Custom Image in the Map Visual:
- In your report, select or add a map visual.
- Drag the field you want to use for the map onto the "Location" well of the map visual.
Switch to the "Format" Pane:
- In the visualizations pane, click on the paint roller icon ("Format") to open the formatting options.
Customize the Data Colors:
- Under "Data colors", you'll find an option for "Category (Image URL)". Click on the paintbrush icon next to it.
Enable "Image URL":
- Toggle on the "Image URL" switch.
Set the Custom Image URL Field:
- Use the field containing your custom image URL. This should be the column you created in step 2.
Adjust Icon Size:
- You can adjust the size of the icons using the "Icon size" slider under the "Shapes" section in the "Format" pane.
Additional Customizations:
- You can further customize the map visual, including the color, transparency, and tooltips associated with your data.
Preview and Save:
- Preview your map visual to ensure the custom triangle icons are displayed correctly. If satisfied, save your report.
Your map visual should now display your custom triangle icons based on the data and the URL you provided. If you need to further refine the appearance, you can use the formatting options in the "Format" pane.
If you find this insightful, please provide a Kudo and accept this as a solution.
Do i add "Custom Image URL" field in Location?