Javascript 使用jChartFX更改饼图比例
您知道如何更改相对于其父图表div的图表比例吗 现在看起来是这样的 。。。应该是这样的 这里可以找到用作本示例基础的代码Javascript 使用jChartFX更改饼图比例,javascript,css,css3pie,jchartfx,Javascript,Css,Css3pie,Jchartfx,您知道如何更改相对于其父图表div的图表比例吗 现在看起来是这样的 。。。应该是这样的 这里可以找到用作本示例基础的代码 HTML 自定义工具提示 var-chart1; 函数onLoadDoc(){ chart1=新的cfx.Chart(); 图1.setGallery(cfx.Gallery.Pie); 图表1.getAnimations().getLoad().setEnabled(true); var pie=chart1.getGalleryAttributes(); pie
HTML
自定义工具提示
var-chart1;
函数onLoadDoc(){
chart1=新的cfx.Chart();
图1.setGallery(cfx.Gallery.Pie);
图表1.getAnimations().getLoad().setEnabled(true);
var pie=chart1.getGalleryAttributes();
pie.setExplodingMode(cfx.ExplodingMode.First);
chart1.getView3D().setEnabled(true);
图表1.getLegendBox().setVisible(true);
//...
}
您可以使用边距属性:chart1.getPlotAreaMargin().setTop(0);
chart1.getPlotAreaMargin().setBottom(0);
chart1.getPlotAreaMargin().setRight(0);
chart1.getPlotAreaMargin().setLeft(0);
chart1.getPlotAreaMargin().setTop(0);
chart1.getPlotAreaMargin().setBottom(0);
chart1.getPlotAreaMargin().setRight(0);
chart1.getPlotAreaMargin().setLeft(0);