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

Asthetic/Scalable color palette #14

Open
3 of 5 tasks
VijayKrishna opened this issue May 26, 2015 · 6 comments
Open
3 of 5 tasks

Asthetic/Scalable color palette #14

VijayKrishna opened this issue May 26, 2015 · 6 comments

Comments

@VijayKrishna
Copy link
Member

The tree-map view needs a color scheme that works well with an increasing number of packages/classes. Ideally, we should be looking to implement the following facilities in such a palette:

  • the palette can produce an array/range of contrasting colors at scale.
  • the palette enables a change in brightness of the colors that it is composed of.
  • the palette enables the creation of a color-range based on an existing array of colors/numbers -- this is useful for using such an implementation in the case of metrics like suspiciousness.
  • the palette should exist in its own JavaScript (.js) file that allows for the implementation to be tested independent of the rest of the code base.
  • the palette-implementation is supported with a suite of unit-tests.
@VijayKrishna
Copy link
Member Author

@maxcn, given that we are using d3.js (http://d3js.org) i think we can leverage the powerful support for colors that d3.js already provides. But to get started with the actual implementation, it might be worthwhile if you got a hang of how colors work in d3. So here are a few resources that you can go over:

So, play around with the sample code that uses the color api, so that you are comfortable about using d3.js and its colors api. then we can toss around some concrete implementation ideas.

@maxcn
Copy link
Contributor

maxcn commented May 26, 2015

thanks for the intro and I will go over these intro first.

@VijayKrishna
Copy link
Member Author

@maxcn check out the following two unit-testing frameworks in case you were not able to find any:

@VijayKrishna VijayKrishna added this to the First-Demo milestone May 29, 2015
@maxcn
Copy link
Contributor

maxcn commented May 29, 2015

@VijayKrishna Thanks.

@VijayKrishna
Copy link
Member Author

@maxcn i just tried jasmine, and it is actually pretty nice and easy to use. if you have not yet figured out a testing framework, please go ahead and take a look at the README on the master branch. Also, i think it might not be a bad idea for you to create a pull request for your patch, so that we can merge it into the master branch. You can add test cases after that.

@VijayKrishna
Copy link
Member Author

Also, if you think that QUnit is better, please go ahead and try that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants