Categories
Closed this issue · 2 comments
rezpe commented
Hi,
What happens when the scale in conventions need to use a category instead of a measure (using another scale instead of a linear scale) ? Is there an option for this ?
Regards,
Rezpe
1wheel commented
You can replace the provided c.x
with anything you want. For instance:
var xLogScale = d3.scaleLog().domain([1, 1000]).range(c.x.range())
If you still want to use c.drawAxis
, pass the new scale to c.xAxis
:
c.xAxis.scale(xLogScale)`
c.drawAxis() // draws log axis
rezpe commented
Awesome,
Thx !!!!!
The change of axis would be like that ?
c.x = xLogScale