Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用jChartFX更改饼图比例_Javascript_Css_Css3pie_Jchartfx - Fatal编程技术网

Javascript 使用jChartFX更改饼图比例

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

您知道如何更改相对于其父图表div的图表比例吗

现在看起来是这样的

。。。应该是这样的

这里可以找到用作本示例基础的代码


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);