I have chart with next properties:
barChart
.width(width)
.height(height)
.dimension(dim)
.group(group)
.x(d3.scale.ordinal())
.xUnits(dc.units.ordinal)
My axis tick looks like "ZZxBob", "PxBob"
How to use split function by 'x' to each tick?
The axes are generated entirely by D3.
You can use
chart.xAxis()
to retrieve the x axis object, and thenaxis.tickFormat()
to change the way it's displayed.So, e.g. to display the part before x: