Jump to content
Software FX Community

Vertical gridlines in Gannt Chart


mcstoufer

Recommended Posts

Is this possible with Java? I tried all the setGridlines() and setGrid() format calls on the x-axis Axis object and still no lines appear. Do I have to fake it and add ConstantLines at each major tick mark on the x-axis?

 

  rangeBar.setGrid(ChartGrid.VERT);   Axis axisX = rangeBar.getAxisX();   axisX.setStep((short) 20);   axisX.setGridlines(true);   axisX.getGrid().setColor(new java.awt.Color(215,215,215));   axisX.getGrid().setStyle(LineStyle.DASH);   axisX.getLabelsFormat().setDecimals((short)0);   axisX.getLabelsFormat().setFormat(AxisFormat.NUMBER);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...