The community of Analytics developers are invited to follow and participate in the developer network. OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Chart Colors Based on Data

The example uses a static data source so you can run it as is. The reason for the two examples (HTML5 and non-HTML5) is because for HTML5 script is executed in the browser and does not have access. <br />
<br />
For non-HTML5 charts I created a persistent global variable in form of a hash map that sores the colors for each category.<br />
<br />
For HTML5 charts I created window variables that do the same (thanks Rob Murphy for the tip).