LinearScale scalex = new LinearScale(xyplot.getMinx(), xyplot.getMaxx()); LinearScale scaley = new LinearScale(xyplot.getMiny(), xyplot.getMaxy()); Element labelx = plot.svgText(sizex * .5, sizey + margin * .9, xyplot.getLabelx()); SVGUtil.setCSSClass(labelx, CSS_AXIS_LABEL); layer.appendChild(labelx); Element labely = plot.svgText(margin * -.8, sizey * .5, xyplot.getLabely()); SVGUtil.setCSSClass(labely, CSS_AXIS_LABEL); SVGUtil.setAtt(labely, SVGConstants.SVG_TRANSFORM_ATTRIBUTE, "rotate(-90," + FormatUtil.NF6.format(margin * -.8) + "," + FormatUtil.NF6.format(sizey * .5) + ")");
LinearScale scalex = new LinearScale(xyplot.getMinx(), xyplot.getMaxx()); LinearScale scaley = new LinearScale(xyplot.getMiny(), xyplot.getMaxy()); Element labelx = plot.svgText(sizex * .5, sizey + margin * .9, xyplot.getLabelx()); SVGUtil.setCSSClass(labelx, CSS_AXIS_LABEL); layer.appendChild(labelx); Element labely = plot.svgText(margin * -.8, sizey * .5, xyplot.getLabely()); SVGUtil.setCSSClass(labely, CSS_AXIS_LABEL); SVGUtil.setAtt(labely, SVGConstants.SVG_TRANSFORM_ATTRIBUTE, "rotate(-90," + FormatUtil.NF6.format(margin * -.8) + "," + FormatUtil.NF6.format(sizey * .5) + ")");