Jump to content
JChartFX Community
  • 0

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


Hayeon

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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
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
Answer this question...

×   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.

Loading...
×
×
  • Create New...