Jump to content
JChartFX Community
  • 0
Sign in to follow this  
Hayeon

How could I remove OEM license icon? or how to expand chart area?

Question

Hayeon    0

Hi jChartFX Team.

 

We have jChartFX Plus OEM license to make our application.

Therefore, we could remove the watermark from charts

However, we found out some issues after the watermark is removed.

 

First of all, according to article (http://support.softwarefx.com/jChartFX/article/2501235#!1500134), the article says 

"A component licensed with an OEM License will randomly display a small grayed-out information icon on the right bottom corner of the component.".

Actually, we want to remove the small grayed-out information icon which is randomly displayed. 

Do you have any idea how to stop displaying the icon? 

 

Additionally,  we found out that the license icon occupied fixed part of chart although the icon is not shown.

If the fixed area where is allocated by the icon, our chart size will be increased to the area.

How could I expand chart size to the fixed icon area?

 

Another question is about a legend box.

I attached two chart examples. By comparison with the examples, legend box location is changed.

Then, we realized there are some margin from X axis to bottom of chart area when the legend box is located upper side of chart. 'legendup.html' file also has the OEM license icon too. 

is the margin caused by the icon or legend box location?

  

Please let me know how to fix this issues.

 

Thank you for your help

 

Attached Thumbnails

 

PieChart.bmp

legendrightside.html

legendup.html

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
JuanC    3

About the spacing between legend box, title and plot area

 

Sample Chart Code

 

chart1.setBorder(null);

chart1.setGallery(cfx.Gallery.Bar);
chart1.setDataSource([{"Male":9.2, "Female":8.4, "Year":"2007"},{"Male":3, "Female":4, "Year":"2008"},{"Male":4, "Female":4, "Year":"2009"}]);
var title = new cfx.TitleDockable();
title.setText("Birth Variation by Gender");
chart1.getTitles().add(title);
var legendBox = chart1.getLegendBox();
legendBox.setDock(cfx.DockArea.Top);
 
Sample Code to minimize empty space
 
var plotAreaMargin = chart1.getPlotAreaMargin();
 
// Measured in pixels, minimum space at top of plot area
// Might result in top axis label clipped if set to minimum value (1) and no title is present
plotAreaMargin.setTop(3);
 
// Measured in pixels, extra vertical space if legend is positioned at top/bottom
// this method is only exposed in build 5900 or later
legendBox.setExternalGap(0);
 
// Measured in pixels, if set to 0 legend marker might be slightly clipped
legendBox.setMarginY(2);
 
// Measured in percentage, defaults to 2
legendBox.setLineSpacing(1);
 
// Measured in pixels
title.setSeparation(0);
 
// Alignment center (default) might create some spacing between legend (top) and title
title.setLineAlignment(cfx.StringAlignment.Near);
 
Please note that setExternalGap is only available in build 5900 or later, all other methods should be available.
 
JuanC

Share this post


Link to post
Share on other sites
  • 0
JuanC    3

If using an OEM license and legend box is positioned at top, there will be extra space "stolen" from plot area at the bottom to make space for icon, even when icon is not visible.

 

JuanC

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×