Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Vertical Labels on BarChart (transform / textAnchor) #329

Closed
Sineliad opened this issue Jun 7, 2016 · 2 comments
Closed

Vertical Labels on BarChart (transform / textAnchor) #329

Sineliad opened this issue Jun 7, 2016 · 2 comments

Comments

@Sineliad
Copy link

Sineliad commented Jun 7, 2016

Hi there - thanks for the great library!

I was trying to get Vertical Labels for the barchart passing down transform and textAnchor properties with no luck, it gets the default behavior.

Tried several methods but no luck either . Any pointers how it has to be done?

Thanks ;)

@nickells
Copy link

Hi,

I was able to achieve the following with pure CSS
image

.rd3-barchart-xaxis text{
  transform: rotate(65deg) translateX(60px)
}

.rd3-chart {
  height: 350px;
}

@Sineliad
Copy link
Author

Hi, thanks :) :)

It's work, I only have to change the classes name. I am using 'react-d3-basic').BarChart

.react-d3-core__axis__xAxis text{ transform: rotate(65deg) translateX(60px); } .react-d3-core__container_svg{ height: 1000px; }

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

No branches or pull requests

3 participants