Jump to content
JChartFX Community
  • 0
Rushabh Shah

LegendBox is not appering

Question

I am creating pie chart and try to show legendbox but it does not appear.Please help do i missing some code?

 

function MultipleSeriesPie(chart1) {

            PopulateCarProduction(chart1);

            // RELEVANT CODE

            chart1.setGallery(cfx.Gallery.Doughnut);

            chart1.getAnimations().getLoad().setEnabled(true);

            

            

            //chart1.getView3D().setEnabled(true);

            // END RELEVANT CODE

            var data = chart1.getData();

            data.setPoints(5);

            data.setSeries(1);

            var titles = chart1.getTitles();

            var title = new cfx.TitleDockable();

            title.setText("Project Outlay");

            titles.add(title);

            

            chart1.getAllSeries().getPointLabels().setVisible(true);

            chart1.getLegendBox().setVisible(true);

            chart1.getLegendBox().setDock(cfx.DockArea.Right);


        }


         

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I copied your code in a sample (commenting the PopulateCarProduction call) and got the legendbox to appear. Is it possible another element of the HTML page is being drawn on top of the legend box? Or maybe there is a parent DIV that is clipping the chart's div?

JuanC 

Share this post


Link to post
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...