首页 > 解决方案 > Fushion 图表 pie3d 在 ruby​​ on rails 上无法正常工作

问题描述

我正在使用 fushion 图表来获得饼图 3D 效果,其中使用的后端是红宝石,前端是有角度的。

它工作正常。但是,有时饼图数据会重叠,如下所示。

在此处输入图像描述

下面给出的是我们需要的。它以前已经工作过。

在此处输入图像描述

我们指的是这个网站https://www.fusioncharts.com/dev/chart-attributes/?chart=pie3d以获取 fushion 图表。

在我们的 Angular js html 页面中,我们使用了命令

<div fusioncharts 
    width="100%"         
    type="pie3d"
    datasource="{{pieDataSource}}">
</div> 

我们将 Angular js 控制器中的值传递为

  $scope.pie_chart_options      = 
                                {
                                theme: "fint",
                                // caption: "Matches",
                                decimals: "0",
                                showlabels: "0",
                                showlegend: "1",
                                legendShadow: "0",
                                plottooltext: "$label: $value",                                    
                                legendBgColor: "#ffffff",
                                slicingdistance: "15",
                                showHoverEffect: "1",
                                animateClockwise: "1",
                                legendBorderAlpha: "0",
                                showpercentvalues: "0",
                                enablemultislicing: "1",
                                legendItemFontSize: "10",
                                legendItemFontColor: "#666666",                                    
                                showpercentintooltip: "0",
                              }

请帮助我如何处理这个问题。

标签: ruby-on-railsangularjsjsonruby

解决方案


推荐阅读