• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©   Anjuta Software
Why transparent background does not work?
by Eugene at 2 Mar. 2015
  1. NChart3D FAQ
  2. Java API
  3. Why transparent background does not work?

To make the transparency of background work you have to switch off the opacity of the chart's view instance just after you created it.

You need the following code:

m_view.setBackgroundColor(Color.TRANSPARENT);
m_view.getChart().setBackground(new NChartSolidColorBrush(Color.TRANSPARENT));

However this can hit the performance in some cases, because NChart3D is based on OpenGLES and alpha-blending of its grapical content with other UI may be inefficient.

Was this article helpful?

Unfortunately, you can't vote for this article. Please log in to be able to vote.

0 out of 0 found this helpful


Comments


No comments yet.

Please log in to place a comment.