For VolumeRepresentation, I use some codes like:
dash_vtk.VolumeRepresentation(
id='vol',
colorMapPreset='jet',
colorDataRange=[0,255],
children=.....
),
it works fine~
but in SliceRepresentation, I use:
dash_vtk.SliceRepresentation(
id="slice-x",
xSlice=128,
colorMapPreset='jet',
colorDataRange=[120,255],
children=dash_vtk.ShareDataSet(),
),
nothing happened....it is still in grayscale on the slicer
why?