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

      1. <small id='vSIH7'></small><noframes id='vSIH7'>

      2. <legend id='vSIH7'><style id='vSIH7'><dir id='vSIH7'><q id='vSIH7'></q></dir></style></legend>

      3. <tfoot id='vSIH7'></tfoot>

        Chart.js 雷达标签坐标

        Chart.js Radar Labels Coordinates(Chart.js 雷达标签坐标)
        <legend id='obooN'><style id='obooN'><dir id='obooN'><q id='obooN'></q></dir></style></legend>
        1. <small id='obooN'></small><noframes id='obooN'>

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

                <bdo id='obooN'></bdo><ul id='obooN'></ul>
                <tfoot id='obooN'></tfoot>

                  <tbody id='obooN'></tbody>

                  本文介绍了Chart.js 雷达标签坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有什么方法可以获取雷达图中标签的坐标吗?我正在尝试在标签区域中放置图像而不是文本.

                  is there any way to get the coordinates for the labels in the radar chart? I'm trying to put images instead of text in the labels area.

                  推荐答案

                  您可以使用 scale 属性计算它.这是动画完成后在这些点上绘制一个蓝色圆圈的东西.

                  You can calculate it using the scale property. Here is something that draws a blue circle at those points after the animation completes.

                  onAnimationComplete: function () {
                      for (var i = 0; i < this.scale.valuesCount; i++) {
                          // get the poitn position
                          var pointLabelPosition = this.scale.getPointPosition(i, this.scale.calculateCenterOffset(this.scale.max) + 5);
                  
                          // draw a circle at that point
                          this.chart.ctx.beginPath();
                          this.chart.ctx.arc(pointLabelPosition.x, pointLabelPosition.y, 5, 0, 2 * Math.PI, false);
                          this.chart.ctx.fillStyle = '#77e';
                          this.chart.ctx.fill();
                          this.chart.ctx.stroke();
                      }
                  }
                  

                  <小时>

                  小提琴 - http://jsfiddle.net/1jgmbyb7/

                  这篇关于Chart.js 雷达标签坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在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中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)

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

                      • <bdo id='kwFLB'></bdo><ul id='kwFLB'></ul>
                          <tbody id='kwFLB'></tbody>

                        • <legend id='kwFLB'><style id='kwFLB'><dir id='kwFLB'><q id='kwFLB'></q></dir></style></legend>

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

                            <tfoot id='kwFLB'></tfoot>