Jump to content
JChartFX Community
  • 0

Regarding transparent background.


Shraddha Kulkarni

Question

3 answers to this question

Recommended Posts

  • 0

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

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