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

pass through function for color fill instead of just array #51

Open
kernant opened this issue Feb 6, 2020 · 1 comment
Open

pass through function for color fill instead of just array #51

kernant opened this issue Feb 6, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Projects

Comments

@kernant
Copy link

kernant commented Feb 6, 2020

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@JustinGOSSES JustinGOSSES added this to Long Term & Evaluation : To do in Prime via automation Feb 16, 2020
@JustinGOSSES JustinGOSSES added the enhancement New feature or request label Feb 16, 2020
@JustinGOSSES JustinGOSSES self-assigned this Feb 16, 2020
@JustinGOSSES JustinGOSSES moved this from Long Term & Evaluation : To do to In progress in Prime Feb 16, 2020
@JustinGOSSES JustinGOSSES moved this from In progress to Core Features TO DO in Prime Feb 21, 2020
@JustinGOSSES JustinGOSSES moved this from Core Features TO DO to In progress in Prime Apr 8, 2020
@JustinGOSSES
Copy link
Owner

Resources for later:
https://stackoverflow.com/questions/41848677/how-to-make-a-color-scale-in-d3-js-to-use-in-fill-attribute

https://github.com/d3/d3-scale-chromatic

The fill variable is currently
fill: Array(1) [ 0: Object {curve_name: "RHOB", fill: "yes", fill_direction: "left", cutoffs: Array(3), fill_colors: Array(3), curve2: ""} ]
and takes string....what will need to be changed for it to also take a function in place of the string like:
var colors = d3.scaleQuantize() .domain([0,50]) .range(["#5E4FA2", "#3288BD", "#66C2A5", "#ABDDA4", "#E6F598", "#FFFFBF", "#FEE08B", "#FDAE61", "#F46D43", "#D53E4F", "#9E0142"]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Prime
  
In progress
Development

No branches or pull requests

2 participants