G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

Ability to set individual field color

Open Snazzie opened this issue 3 years ago • 1 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Displaying data with correct colour indicating severity of data. Red for critical, Yellow for Medium, blue for Low

What does the proposed API look like?

color: [{fieldName:"Critical", color: "red"}]

Snazzie avatar Jun 07 '22 20:06 Snazzie

maybe you could use “seriesField” to specify the field and customize color with color callback

visiky avatar Jul 07 '22 12:07 visiky