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

question about the input #20

Open
kouroshparsa opened this issue Dec 10, 2016 · 2 comments
Open

question about the input #20

kouroshparsa opened this issue Dec 10, 2016 · 2 comments

Comments

@kouroshparsa
Copy link

This is a great project.
Can you please explain what the input is?

var heatmap = [
    ['january',0,1,1368001],

It seems that it is MONTH, DAY, DAY, POWER.
but heatmap is supposed to have 3 dimensions so why there are 4?
thanks

@pollen8
Copy link
Contributor

pollen8 commented Jun 2, 2017

the first entry is the id - you use this to to assign track data to the given layout

so say your layout has data :

[{
   id: 'january'
...
}]

if you added a track its data would look like

[{
        block_id: 'january',
        ....
 }]

this allows cicrosjs to position the track relative to its related layout entry

@nicgirault
Copy link
Owner

Thanks @pollen8 for the answer. Is it clear enough @kouroshparsa? Is there a part of the documentation that is not clear enough?

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

No branches or pull requests

3 participants