<i id='4xlMd'><tr id='4xlMd'><dt id='4xlMd'><q id='4xlMd'><span id='4xlMd'><b id='4xlMd'><form id='4xlMd'><ins id='4xlMd'></ins><ul id='4xlMd'></ul><sub id='4xlMd'></sub></form><legend id='4xlMd'></legend><bdo id='4xlMd'><pre id='4xlMd'><center id='4xlMd'></center></pre></bdo></b><th id='4xlMd'></th></span></q></dt></tr></i><div id='4xlMd'><tfoot id='4xlMd'></tfoot><dl id='4xlMd'><fieldset id='4xlMd'></fieldset></dl></div>
    <tfoot id='4xlMd'></tfoot>

    <small id='4xlMd'></small><noframes id='4xlMd'>

      <bdo id='4xlMd'></bdo><ul id='4xlMd'></ul>

    <legend id='4xlMd'><style id='4xlMd'><dir id='4xlMd'><q id='4xlMd'></q></dir></style></legend>

    1. 设置动画速度 - ChartJS?

      Set Animation speed - ChartJS?(设置动画速度 - ChartJS?)
      • <tfoot id='AF8oX'></tfoot>
        • <bdo id='AF8oX'></bdo><ul id='AF8oX'></ul>
            <legend id='AF8oX'><style id='AF8oX'><dir id='AF8oX'><q id='AF8oX'></q></dir></style></legend>

            <i id='AF8oX'><tr id='AF8oX'><dt id='AF8oX'><q id='AF8oX'><span id='AF8oX'><b id='AF8oX'><form id='AF8oX'><ins id='AF8oX'></ins><ul id='AF8oX'></ul><sub id='AF8oX'></sub></form><legend id='AF8oX'></legend><bdo id='AF8oX'><pre id='AF8oX'><center id='AF8oX'></center></pre></bdo></b><th id='AF8oX'></th></span></q></dt></tr></i><div id='AF8oX'><tfoot id='AF8oX'></tfoot><dl id='AF8oX'><fieldset id='AF8oX'></fieldset></dl></div>

                <small id='AF8oX'></small><noframes id='AF8oX'>

                  <tbody id='AF8oX'></tbody>
                本文介绍了设置动画速度 - ChartJS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试在chartJS中设置饼图的动画速度.

                I am trying to set the animation speed of a pie chart in chartJS.

                我尝试了以下方法:

                1. numSteps: 数字

                1. numSteps: Number

                动画步骤:数字

                Chart.defaults.global.animationSteps = Number

                Chart.defaults.global.animationSteps = Number

                这些都没有改变速度.有什么建议吗?

                None of these have changed the speed. Any advice?

                 var myNewChart;
                    var data = [
                        {
                        value: 30,
                        label: "hello",
                        color: "#F7464A"
                      }, {
                        value: 50,
                        color: "#E2EAE9"
                      }, {
                        value: 100,
                        color: "#D4CCC5"
                      }, {
                        value: 40,
                        color: "#949FB1"
                      }, {
                        value: 100,
                        color: "#4D5360"
                      },
                    
                    ];
                    
                    
                    var options = {
                      animation: true,
                      animationEasing: 'easeInOutQuart',
                      animationSteps: 80,
                      multiTooltipTemplate: "<%= datasetLabel %> - <%= value %>"
                    
                    };
                    
                    
                    var ctx = document.getElementById("myChart")
                                                        .getContext("2d");
                    
                    myNewChart = new Chart(ctx).Doughnut(data, options);
                

                推荐答案

                使用 Chart.defaults.global.animation.duration = 3000;

                这篇关于设置动画速度 - ChartJS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
                问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                Ordinals in words javascript(javascript中的序数)
                  <tfoot id='cJuzZ'></tfoot>
                • <legend id='cJuzZ'><style id='cJuzZ'><dir id='cJuzZ'><q id='cJuzZ'></q></dir></style></legend>
                      <i id='cJuzZ'><tr id='cJuzZ'><dt id='cJuzZ'><q id='cJuzZ'><span id='cJuzZ'><b id='cJuzZ'><form id='cJuzZ'><ins id='cJuzZ'></ins><ul id='cJuzZ'></ul><sub id='cJuzZ'></sub></form><legend id='cJuzZ'></legend><bdo id='cJuzZ'><pre id='cJuzZ'><center id='cJuzZ'></center></pre></bdo></b><th id='cJuzZ'></th></span></q></dt></tr></i><div id='cJuzZ'><tfoot id='cJuzZ'></tfoot><dl id='cJuzZ'><fieldset id='cJuzZ'></fieldset></dl></div>

                      <small id='cJuzZ'></small><noframes id='cJuzZ'>

                        <tbody id='cJuzZ'></tbody>
                        <bdo id='cJuzZ'></bdo><ul id='cJuzZ'></ul>