Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
## Attributes to change colors <img src="/uploads/upload/image/5200/direct/1566826108229-1566826108229.png" alt=""Element color" dialog showing text input with "firebrick" and red color swatch selected. Below are radio button options: "rainbow" with six colored squares (purple, red, orange, yellow, green, blue), "ascending" with blue and red squares, and "descending" with green and blue squares. Cancel and Ok buttons at bottom." style="width: 240px;" class="fr-fic fr-dii"> There are two different attributes to describe colors for an element. "color" attribute is for the element color, for organizational purpose, while "colors" attribute customize colors for stacked, bar, column and other charts. ## Element Color <img src="/uploads/upload/image/5200/direct/1566826451778-1566826451778.png" alt=""Section 2" header with "Product profile" subtitle displaying two side-by-side questions: Q7 (red circle icon) asking "What are your initial thoughts about the device you have just reviewed?" with Filter box and Apply button, showing text responses at low percentages (2.0%, 1.0%); Q8v1 (green square icon) asking "What are the primary strength(s) of the device you just reviewed?" with "Compact to Yes" note and blue bars showing percentages like Extended release (79.0%), Easy to use daily (68.0%)." style="width: 480px;" class="fr-fic fr-dib fr-fil"> You can customize the element colors for the square and circle in the upper left corner, or the triangle in a compacted list. Often, a well organized project will have each section in a different color. Alternatively, you could mix the color like the image above for a more dramatic visual impact. You can use the color menu to change the color, or directly edit the "color" attribute to enter a CSS color or 3/6 digit hex color code. <img src="/uploads/upload/image/5200/direct/1566826584482-1566826584482.png" alt=""Section 2" header with dropdown context menu displaying options including "Select to copy as text", "Copy as image", "Round by..." (E B), "Statistics..." (E S), and "Color..." (E O) highlighted with gray background. A blue tooltip below reads "Choose element color"." style="width: 240px;" class="fr-fic fr-dib fr-fil"> ## Colors and Themes The "colors" attribute modifies the colors for charting purpose. Valid values are: "ascending" - An interpolated color theme going from low values to high values "descending" - and interpolated color theme going from high values to low values an array of colors - colors are assigned based on the array listed, and start from the beginning of array if there are more items than colors listed. e.g. "colors" : \["red", "blue", "green"\] will assign the first item to red, second to blue, and third to green, and fourth to red again. a theme - themes can be created for the entire project, and then used in multiple elements "colors" : "rainbow" will use the rainbow theme color, if defined. ## Creating themes Themes can be created under the $root element, which can be edited in the upper left trigram: <img src="/uploads/upload/image/5200/direct/1566827235215-1566827235215.png" alt="Context menu with section tabs "Screener", "Section 1", "Section 2" at top, followed by options: "Round by..." (E B), "Statistics..." (E S), "Color" (E O), "Format..." (E F), "Recode..." (E R), "Filters..." (E I), "Chart type..." (E H), "More properties..." (E M), "Edit JSON..." (E J) in bold. Blue tooltip at bottom states "Edit this element directly". Right side shows partial medical device infographic with hexagonal icons." style="width: 240px;" class="fr-fic fr-dib fr-fil"> Under the $root, if the colors attribute is created as an object with "theme":\["color1","color2", ... \] as attributes, then these can be used for various elements. e.g. ``` "colors": { "rainbow": [ "purple", "red", "orange", "yellow", "green", "blue" ], "ascending": [ "blue", "red" ], "descending": [ "#9B6", "#39c" ] ``` These assign specific themes to be used within all elements.
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete