Volume
Overview
The volume insight type is used to create 3D volume plots, visualizing 3D scalar or density data. Volume insights are ideal for representing datasets where each (x, y, z) point in a grid has a value, such as in medical imaging, fluid dynamics, or other scientific applications.
You can customize opacity, surface levels, and colors to effectively show the internal structure of the volume.
Common Uses
- Medical Imaging: Visualizing 3D scans like MRI or CT data.
- Fluid Dynamics: Representing 3D fields of density, pressure, or velocity.
- Scientific Visualization: Displaying volumetric or scalar field data.
Check out the Attributes for the full set of configuration options
Examples
Common Configurations
sources:
- name: isosurface-data-simple-source
type: duckdb
database: target/seeds/isosurface_data_simple.duckdb
seeds:
- table_name: model
args:
- echo
- |
idx,x,y,z,value
0,0,0,1,1
1,0,1,1,2
2,0,0,0,3
3,0,1,0,4
4,1,0,1,5
5,1,1,1,6
6,1,0,0,7
7,1,1,0,8
models:
- name: isosurface-data-simple
source: ${ref(isosurface-data-simple-source)}
sql: select * from model
insights:
- name: Simple Isosurface Insight
props:
type: isosurface
x: ?{${ref(isosurface-data-simple).x}}
y: ?{${ref(isosurface-data-simple).y}}
z: ?{${ref(isosurface-data-simple).z}}
value: ?{${ref(isosurface-data-simple).value}}
isomin: 2
isomax: 6
colorscale: "Reds"
interactions:
- sort: ?{${ref(isosurface-data-simple).idx} asc}
charts:
- name: Simple Isosurface Chart
insights:
- ${ref(Simple Isosurface Insight)}
layout:
title:
text: Simple Isosurface Plot<br><sub>3D Volume Visualization</sub>