SVGSimpleLinearAxis.drawAxis(svgp, layer, proj.getScale(d), orig[0], orig[1], ax[0], ax[1], righthand ? SVGSimpleLinearAxis.LabelStyle.RIGHTHAND : SVGSimpleLinearAxis.LabelStyle.LEFTHAND, context.getStyleLibrary());
// TODO: move axis labeling into drawAxis function.
double offx = (righthand ? 1 : -1) * 0.02 * Projection.SCALE;
double offy = (righthand ? 1 : -1) * 0.02 * Projection.SCALE;
Element label = svgp.svgText(ax[0] + offx, ax[1] + offy, DatabaseUtil.getColumnLabel(rel, d + 1));
SVGUtil.setAtt(label, SVGConstants.SVG_STYLE_ATTRIBUTE, alcls.inlineCSS());
SVGUtil.setAtt(label, SVGConstants.SVG_TEXT_ANCHOR_ATTRIBUTE, righthand ? SVGConstants.SVG_START_VALUE : SVGConstants.SVG_END_VALUE);
layer.appendChild(label);
}
catch(CSSNamingConflict e) {
throw new RuntimeException("Conflict in CSS naming for axes.", e);