I'm trying to achieve something, and I'm not sure how to approach it.
I have a sample data in data.csv file, like this:
State,p1,p2,p3,p4,p5,p6,p7
AL,0.5,0.5,0.5,1,1,1,1,1,1
AK,1,1,1,1,1,1,1,1,1
Right now, each data value is 100. This looks good but if I change value, my bar chart changes, and it needs to be fixed (x axis should always be 0-7) since it represents data for one week in this case.
The reason why I don't want my chart to depend on data is because data will be used only for color representation, not for the width. So, if value is from 80-100, color it green. But I will figure out it later.
I achieved the desired results in Highcharts, but I prefer D3.
I did it using Highcharts here, and I want to get something like this: http://jsfiddle.net/21udsf05/3/
And after I read this answer, I implemented the same code for my case: http://plnkr.co/edit/SgrHixnqnLHcra3Tv65H?p=preview from @mbostock.
I appreciate any help!