Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-34: Use Color Map with fields for Pie Chart #34

Closed
wants to merge 3 commits into from
Closed

issue-34: Use Color Map with fields for Pie Chart #34

wants to merge 3 commits into from

Conversation

nikhilj13
Copy link
Contributor

@nikhilj13 nikhilj13 commented Aug 6, 2018

Modifies Facet component to take in an optional prop fieldValueColors which can be specified in the configuration.properties.js file (in SearchUI). If a sector is selected, the pie chart will update to the color of that sector instead of using the first value in entityColors prop. Here's an example:
color-map-fix
Users can configure the colors used for any fields that are used for creating pie charts. Here's an example configuration placed in configuration.properties.js for the above pie chart which uses the field table:

fieldValueColors: {
		table: {
			'Employees': '#007dbc',
			'Email': '#ed7a23',
			'News': '#fedd0e',
			'Research': '#db2e75',
			'Grant Proposal': '#ef8baa',
			'Dissertation': '#fcb62c',
		},
		sentiment: {
			pos: 'lightgreen',
			neg: '#ff6666',
		},
	},

@klk1010 klk1010 added the merge conflicts This PR has a merge conflict that needs to be resolved. label Jul 19, 2019
@klk1010
Copy link
Contributor

klk1010 commented Jul 19, 2019

originating repo has been deleted. @nikhilj13 will redo PR

@klk1010 klk1010 closed this Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge conflicts This PR has a merge conflict that needs to be resolved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants