Jump to content


Controlling the background color of the svg element


  • Please log in to reply
3 replies to this topic

#1 maykumar

maykumar

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 06 March 2017 - 06:50 AM

Hi Team,

 

How can I change or remove the background color of the svg element for fusion gauges.

 

 

Regards,

Mayank



#2 maykumar

maykumar

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 06 March 2017 - 02:05 PM

To add more, we are using XML and already tried adding containerBackgroundOpacity='0' to the chart element, but no success.

 

 

Regards,

Myaank



#3 maykumar

maykumar

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 07 March 2017 - 02:18 AM

Could someone please help on this?

 

Regards,

Mayank



#4 Ayan Bhadury

Ayan Bhadury

    Advanced Member

  • Members
  • PipPipPipPip
  • 94 posts
  • LocationIndia

Posted 08 March 2017 - 12:23 PM

Hi,

You cannot access the background svg element natively, however you can use "bgcolor" to change its background color and to remove the background color i.e. to make it transparent you can use "containerbackgroundopacity" at constructor level.
 
For further reference please check this sample fiddle link
http://jsfiddle.net/...uryfc/4zLd2xj1/

Thanks, 
Ayan Bhadury