if (g.getOption('drawYAxis')) {
var w = g.getOption('yAxisLabelWidth') + 2 * g.getOption('axisTickSize');
if (g.getOption('drawYAxis')) {
var w = g.getOption('yAxisLabelWidth') + 2 * g.getOption('axisTickSize');
if (g.getOption('xAxisHeight')) {
h = g.getOption('xAxisHeight');
} else {
h = g.getOptionForAxis('axisLabelFontSize', 'x') + 2 * g.getOption('axisTickSize');
}
if (g.getOption('xAxisHeight')) {
h = g.getOption('xAxisHeight');
} else {
h = g.getOptionForAxis('axisLabelFontSize', 'x') + 2 * g.getOption('axisTickSize');
}
}
if (g.numAxes() == 2) {
// TODO(danvk): per-axis setting.
var w = g.getOption('yAxisLabelWidth') + 2 * g.getOption('axisTickSize');
}
if (g.numAxes() == 2) {
// TODO(danvk): per-axis setting.
var w = g.getOption('yAxisLabelWidth') + 2 * g.getOption('axisTickSize');
} else if (g.numAxes() > 2) {
g.error("Only two y-axes are supported at this time. (Trying " +
"to use " + g.numAxes() + ")");
} else if (g.numAxes() > 2) {
g.error("Only two y-axes are supported at this time. (Trying " +
"to use " + g.numAxes() + ")");
width: g.getOption('axisLabelWidth') + "px",
// height: g.getOptionForAxis('axisLabelFontSize', 'x') + 2 + "px",
lineHeight: "normal", // Something other than "normal" line-height screws up label positioning.
overflow: "hidden"
};
width: g.getOption('axisLabelWidth') + "px",
// height: g.getOptionForAxis('axisLabelFontSize', 'x') + 2 + "px",
lineHeight: "normal", // Something other than "normal" line-height screws up label positioning.
overflow: "hidden"
};
context.beginPath();
context.moveTo(axisX, halfDown(area.y));
context.lineTo(axisX, halfDown(area.y + area.h));
context.beginPath();
context.moveTo(axisX, halfDown(area.y));
context.lineTo(axisX, halfDown(area.y + area.h));
context.beginPath();
context.moveTo(halfDown(area.x + area.w), halfDown(area.y));
context.lineTo(halfDown(area.x + area.w), halfDown(area.y + area.h));
context.beginPath();
context.moveTo(halfDown(area.x + area.w), halfDown(area.y));
context.lineTo(halfDown(area.x + area.w), halfDown(area.y + area.h));