Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/430.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 Anychart chart.animation是一种3D图表类型_Javascript_Anychart - Fatal编程技术网

Javascript Anychart chart.animation是一种3D图表类型

Javascript Anychart chart.animation是一种3D图表类型,javascript,anychart,Javascript,Anychart,我运行的是7.12.0.1229,根据一些动画问题,这里已经修复 尝试将pie3d图表类型与chart.animation(true,800)结合使用时,图表.动画(真)或chart.animation({enabled:true,duration:duration})图表不会呈现 工作示例 破例 3D图表似乎还不支持动画。因此,要么将图表制作成带动画的二维饼图,要么制作不带动画的三维图表。的确,它看起来不太好看,谢谢你的报告!我们已将此案例转移到我们的bug跟踪系统,因此我们将深入调查并尽快回

我运行的是7.12.0.1229,根据一些动画问题,这里已经修复

尝试将
pie3d
图表类型与
chart.animation(true,800)结合使用时
图表.动画(真)
chart.animation({enabled:true,duration:duration})
图表不会呈现

工作示例 破例
3D图表似乎还不支持动画。因此,要么将图表制作成带动画的二维饼图,要么制作不带动画的三维图表。

的确,它看起来不太好看,谢谢你的报告!我们已将此案例转移到我们的bug跟踪系统,因此我们将深入调查并尽快回复您。对于常见的动画功能,3d图表支持动画:

chart = anychart.bar3d([2, 8, 3, 4, 9]);
chart.animation({enabled: true, duration: 3000});

但如果3d派不起作用,我们将很快进行调查

anychart.onDocumentReady(function() {
    //dataset
    var data = anychart.data.set([
        ["$0-$50,000", 68],
        ["$50,000-$100,000", 13],
        ["$100,000-$150,000", 6],
        ["$150,000-$250,000", 6],
        ["$250,000 - plus", 7]
    ])

    var chart = anychart.pie3d(data);

    //adjust legend
    var legend = chart.legend();
    legend.enabled(true);
    legend.position("left");
    legend.align("center");
    legend.itemsLayout("vertical");

    //create title
    var title = chart.title();
    title.text("Pop Out");
    title.enabled(true);

    //inner radius makes this a doughnut chart instead of pie
    chart.innerRadius("30%");

    //define the container
    chart.container("container");

    // chart.animiation breaks pie3d chart type
    chart.animation(true, 800);

    //set delay to recall draw ch art to
    chart.draw();
});
chart = anychart.bar3d([2, 8, 3, 4, 9]);
chart.animation({enabled: true, duration: 3000});