Jump to content
Software FX Community

How to achieve dotted line grid?


User (Legacy)

Recommended Posts

Hello:

I want to ask you a some question is about ChartFx.

Can you tell me ? I wondering how to do it?

My Question:

--------------------------------------------------------

1. How to achieve wang vertical staggered dotted line grid?

2.In the background region showed Legend?

3.Image distance adjustment,Image size is not changed, Only changing the

size of the background, Can do it?

--------------------------------------------------------

The image is attached.

Link to comment
Share on other sites

1. You can do that by using the MinorGridline.  You have to set a minnor 

step first:

chart1.getAxisX().setMinorStep(2);

chart1.getAxisX().setMinorGridlines(true);

chart1.getAxisX().getMinorGrid().setStyle(LineStyle.DOT);

2. Legend in the background area in not supported by the LegendBox object,

but you can achive similar effect by usin Annotations.

3. Set the gaps arround the pie to 1 pixel, so the image occupies the whole

chart area:

chart1.setGaps(new java.awt.Rectangle(1,1,1,1));

"fige" <xlfei@unicomsys.net> wrote in message

news:8yZsXrrjGHA.520@webserver3.softwarefx.com...

> Hello:

> I want to ask you a some question is about ChartFx.

> Can you tell me ? I wondering how to do it?

>

> My Question:

> --------------------------------------------------------

> 1. How to achieve wang vertical staggered dotted line grid?

>

> 2.In the background region showed Legend?

>

> 3.Image distance adjustment,Image size is not changed, Only changing

> the

> size of the background, Can do it?

>

> --------------------------------------------------------

> The image is attached.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...