Hi Maurice van der Zwaan,
For your particular case, you may consider to simply draw them using straight lines with DrawArea.line or BaseChart.addLine. The drawing itself should take less than 10 lines of code. For example (in C#/Java):
//Assume this is the parameter of your chart
cx = 225;
cy = 185;
radius = 150;
axisWidth = 3;
tickLength = 3;
color = 0x3333ff;
tickCount = 5;
int offset = (int)(radius * 0.707); // = radius * cos(45)
//two main axis
d.line(cx - offset, cy - offset, cx + offset, cy + offset, color, axisWidth);
d.line(cx + offset, cy - offset, cx - offset, cy + offset, color, axisWidth);
//the ticks
for (int i = -tickCount; i <= tickCount; ++i) {
int tickOffset = offset * i / tickCount;
d.line(cx - tickOffset + tickLength, cy - tickOffset - tickLength, cx - tickOffset - tickLength, cy - tickOffset + tickLength, color, 1);
d.line(cx + tickOffset - tickLength, cy - tickOffset - tickLength, cx + tickOffset + tickLength, cy - tickOffset + tickLength, color, 1);
}
Hope this can help.
Regards
Peter Kwan |