Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • TIBCO Spotfire: A Comprehensive Primer
  • Toc
  • feedback
TIBCO Spotfire: A Comprehensive Primer

TIBCO Spotfire: A Comprehensive Primer

By : Phillips
4.1 (15)
close
TIBCO Spotfire: A Comprehensive Primer

TIBCO Spotfire: A Comprehensive Primer

4.1 (15)
By: Phillips

Overview of this book

If you are a business user or data professional, this book will give you a solid grounding in the use of TIBCO Spotfire. This book assumes no prior knowledge of Spotfire or even basic data and visualization concepts.
Table of Contents (12 chapters)
close
11
Index

How to manipulate color


Color can be applied to a visualization in one of three fundamentally different ways:

  • Category

  • Rule

  • Gradient

The use of these different approaches is constrained by visualization type, data type, and whether the data is categorical or continuous in nature. At a scripting level, the color is also handled differently for tables and cross tables, but let's start with the other visualizations: those with axes.

Color by category

Color by category is simply handled using the Spotfire.Dxp.Application.Visuals ColorAxis class we've already encountered. This class has a property called Coloring, to which we can apply a categorical color rule. As usual, the main reference object is visualContentObject.

Action

Property or Method

Create a new categorical color rule

colorRule = visualContentObject .ColorAxis.Coloring.AddCategoricalColorRule()

Add values to the color rule

colorRule .Item[Value] = Color

Value can be whatever you want but should match the anticipated values in...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete