Rushabh Shah Posted March 21, 2014 Report Share Posted March 21, 2014 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); } Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted March 24, 2014 Report Share Posted March 24, 2014 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 Quote Link to comment Share on other sites More sharing options...
Question
Rushabh Shah
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);
}
Link to comment
Share on other sites
1 answer 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.