# Paraview Glance: No color mapping when data array name contains colon

**URL:** https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022
**Category:** Development
**Created:** [November 1, 2019, 5:47pm UTC](https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022 "2019-11-01T17:47:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lukas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/e9a140/32.png) [@lukas](https://discourse.vtk.org/u/lukas)
#### Post date: [November 1, 2019, 5:47pm UTC](https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022/1 "2019-11-01T17:47:51Z")

</div>

Hello,

I have encountered the following problem:  
When a data array in a vtkjs file contains a colon in the array name (e.g. “Values: A”),  
the color mapping does not work in Paraview Glance.  
I.e. the mesh is displayed with a solid color instead of the contour plot using the lookup table.

Here is a file that illustrates the issue:  
[test\_withColonInArrayName.vtu](https://discourse.vtk.org/uploads/short-url/yZAUIlwjL0j0LB8ycc3D9KjBPUX.vtu) (2.4 KB)

To reproduce this issue:

1. Load test\_withColonInArrayName.vtu into Paraview 5.7.0
2. Export the scene as vtkjs
3. Load vtkjs file into Paraview Glance
4. No color mapping for array “Values: A” or “Values B”

Is there a limitation concerning special characters in array names for Paraview Glance (or vtk.js) or is it possible to allow special characters in array names and get color mapping for those?

Regards,  
Lukas

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 1, 2019, 6:03pm UTC](https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022/2 "2019-11-01T18:03:20Z")

</div>

🤣 There should be no limitation… Except that in the code for the drop-down I’m encoding the location (point/cell) along with the array name and use `:` as separator… That is an easy fix.

Sorry about that…

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [November 1, 2019, 7:21pm UTC](https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022/3 "2019-11-01T19:21:16Z")

</div>

This should now be fixed in ParaView Glance 3.5.10 (stable). Let me know if if it’s still broken by any chance.

---

<div class="post-metadata">

### Author: ![lukas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/e9a140/32.png) [@lukas](https://discourse.vtk.org/u/lukas)
#### Post date: [November 1, 2019, 7:29pm UTC](https://discourse.vtk.org/t/paraview-glance-no-color-mapping-when-data-array-name-contains-colon/2022/4 "2019-11-01T19:29:45Z")

</div>

The color mapping works in 3.5.10. Thanks for the fix!
