Shraddha Kulkarni Posted April 19, 2013 Report Share Posted April 19, 2013 Hi, I have to create a transparent background for my chart so that background color would be visible for chart. Please let me know how to do this. Also do let me know if I can assign a CSS class to the chart (for setting backgrounds etc) Regards , Shraddha Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted April 19, 2013 Report Share Posted April 19, 2013 There are several elements in the chart so we include a css (jchartfx.css) that you can just include in your page and customize to your needs. To create a transparent chart you would need to modify the fill property for Border class. .jchartfx .Border { fill: #F5F5EE; stroke: #DBDBD9; stroke-width: 1; } All charts are generated with a jchartfx class but if you have multiple charts in a page you can control this class passing an extra string to the create call when you create the chart, e.g. In this case you will probably want to start by duplicating the jchartfx.css with the new class name. var chart2 = new cfx.Chart(); chart2.create('myDiv2',"jchartfx2"); JuanC Quote Link to comment Share on other sites More sharing options...
0 Shraddha Kulkarni Posted April 22, 2013 Author Report Share Posted April 22, 2013 When I wrote below code we are getting to set the background as transparent background. Is there any way in which we can have the chart transparent. var imageback = new cfx.imagebackground('images/shra.png,600,400'); chart1.setbackground(imageback); Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted April 26, 2013 Report Share Posted April 26, 2013 I am not sure I understand the problem, please try posting an image and point out the problem in it. JuanC Quote Link to comment Share on other sites More sharing options...
Question
Shraddha Kulkarni
Hi,
I have to create a transparent background for my chart so that background color would be visible for chart. Please let me know how to do this.
Also do let me know if I can assign a CSS class to the chart (for setting backgrounds etc)
Regards ,
Shraddha
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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.