Transparency of chart panels

Posted by: striker77s on 8 September 2017, 2:20 pm EST

  • Posted 8 September 2017, 2:20 pm EST

    I'm charting a XYZ scatter plot and I'm trying to allow the user to adjust the parameters of the walls through the GUI.  I can set the transparency of the solid wall with the chart designer but I can't figure out how to do it through code.  I'm using VB in VS 2008, any suggestions would be appreciated.

     Mark

  • Replied 8 September 2017, 2:20 pm EST

    Hello Mark,


    You can set the transparency through code using SolidFill and specifying the color using FromArgb() .Here, first argument of Color.FromArgb() represents the alpha blending value. 0 meaning fully transparent, 255 meaning totally not transparent(fully opaque). If you are requesting a fully transparent color then it means you don't see any color, just the background. Please have a look at the code:



    Dim sf As FarPoint.Win.Chart.SolidFill = New SolidFill(Color.FromArgb(255, Color.Red))
    chartXYZ.Model.Fill = sf


    Hope this will help you. Thanks.

  • Replied 8 September 2017, 2:20 pm EST

    That worked! Thanks for the quick reply.

     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels