{"id":14123,"date":"2024-06-18T09:04:25","date_gmt":"2024-06-18T14:04:25","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/docs\/?post_type=ht_kb&#038;p=14123"},"modified":"2024-06-18T09:04:25","modified_gmt":"2024-06-18T14:04:25","slug":"color-coding-ranges","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/color-coding-ranges","title":{"rendered":"Color Coding Ranges"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>Conditional color coding has been available as an <a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/color-coding-via-m-painter\" target=\"_blank\" rel=\"noreferrer noopener\">m-Painter feature<\/a> for many years. Now, developers are able to add color ranges pre-compile which means the styling will still be present after an HTML override. Additionally, once a color range has been saved, it can be reused on other fields as well as across other applications and dictionaries. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<p>From the Field Setting screen, find the &#8220;Basic Field Attributes&#8221; dropdown and select &#8220;Color Ranges&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/fieldSettingsColorRange.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/fieldSettingsColorRange.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Any numeric field\/calculation will have the color range option available. Click &#8216;Lookup\/Create&#8217; to select an existing color range or create a new one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create New Color Range<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/newColorRange1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/newColorRange1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Description:<\/strong> Enter a description that will help developers clearly understand what that color range will accomplish. <\/li>\n\n\n\n<li><strong>Ranges From\/To:<\/strong> Enter the numeric values to conditionally set a style. Leave blank to represent infinity. For example, if wanting to compare a range of 100 and anything higher, you would set the &#8220;From&#8221; as &#8216;100&#8217; and leave the &#8220;To&#8221; blank.<\/li>\n\n\n\n<li><strong>Background Color: <\/strong>Pick the hexcolor value for the background. Leave blank to keep the default background color.<\/li>\n\n\n\n<li><strong>Font Color: <\/strong>Pick the hexcolor value for the font color. Leave blank to keep the default font color.<\/li>\n\n\n\n<li><strong>Font Weight: <\/strong>Select normal or bold font weight.<\/li>\n\n\n\n<li><strong>Font Size: <\/strong>Enter numeric value only the font size in pixels (No need to type &#8216;px&#8217;). Leave blank to keep the default font size.<\/li>\n<\/ul>\n\n\n\n<p>If wanting to leave the color coding to a single range, click Save. However, if wanting to have multiple ranges within the one color coding group, click &#8220;Add Range&#8221;. Continue until the desired color ranges have been created.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/newColorRange.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/newColorRange.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Using a Color Range<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/colorRangeListing.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/colorRangeListing.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Find desired color range and click the green &#8216;Select&#8217; arrow to assign this color range to a given field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/selectedColorRange.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/selectedColorRange.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Once a color range is selected, the color range ID value will be assigned to the field. To reuse this color range on other fields, simply use the same color range ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Color Range Row\/Column<\/h3>\n\n\n\n<p>Select if the styling should be applied to the column or the entire row.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Color Range Levels<\/h3>\n\n\n\n<p>Select if the styling should be applied to the detail level, subtotal levels, the grand total level or all levels.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Runtime Example<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/colorRangeRuntime.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/colorRangeRuntime.png\" alt=\"\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Overview Conditional color coding has been available as an m-Painter feature for many years. Now, developers are able to add color ranges pre-compile which means the styling will still be present after an HTML override. Additionally, once a color range has been saved, it can be reused on other fields&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[250],"ht-kb-tag":[],"class_list":["post-14123","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-report"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/14123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/comments?post=14123"}],"version-history":[{"count":1,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/14123\/revisions"}],"predecessor-version":[{"id":14128,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/14123\/revisions\/14128"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=14123"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=14123"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=14123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}