Bug 501504 - [TMF UI] Have a way for time graph view to generate colors
Summary: [TMF UI] Have a way for time graph view to generate colors
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-15 10:40 EDT by Genevieve Bastien CLA
Modified: 2016-09-15 10:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Genevieve Bastien CLA 2016-09-15 10:40:50 EDT
Right now, when there is no pre-defined list of states for a time graph view, each concrete view has their own way of generating colors.

For instance, the callstack / flamegraph view have one and colors often look identical if the strings to display are close to each other.

The XML time graph views also have their own way to select colors for values, which give rainbow colors with no theming whatsoever.

There should be a common way, starting from a set of nice colors, that makes sure that a given string will always have the same color in all the views and traces, but also makes sure that 2 strings close in name give visually different colors.