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

I want to pass xscale value to Bar Chart, how to achieve that! #171

Open
vchandwani opened this issue Mar 24, 2019 · 0 comments
Open

I want to pass xscale value to Bar Chart, how to achieve that! #171

vchandwani opened this issue Mar 24, 2019 · 0 comments

Comments

@vchandwani
Copy link

I want to pass xscale value to Bar Chart, how to achieve that! I am trying to create stacked Bar Chart
My X-scale values are date and I want to escape few value to be shown.

I am passing data as below
data : [
{
label: 'Test',
values: [{x: new Date(2019, 2, 5,9,10), y: 1 }, {x: new Date(2019, 2, 5,9,20), y: 5}, {x: new Date(2019, 2, 5,9,30), y: 1}]
},
{
label: 'Test1',
values: [{x: new Date(2019, 2, 5,9,10), y: 6}, {x: new Date(2019, 2, 5,9,20), y: 4}, {x: new Date(2019, 2, 5,9,30), y: 2}]
}
]
and getting error "TypeError: xScale.rangeBand is not a function"
My xscale is
xScale: d3.time.scale().domain([new Date(2019,2,5,9,0), new Date(2019,2,5,14,0)]).range([0, 400 - 70]),

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

1 participant