<legend id='Aba6d'><style id='Aba6d'><dir id='Aba6d'><q id='Aba6d'></q></dir></style></legend>

        <tfoot id='Aba6d'></tfoot>

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

          <bdo id='Aba6d'></bdo><ul id='Aba6d'></ul>

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

        chart.js 中多个图表上的工具提示显示错误的值

        Tooltips on multiple charts in chart.js showing the wrong values(chart.js 中多个图表上的工具提示显示错误的值)
          <tbody id='S20EY'></tbody>
        <tfoot id='S20EY'></tfoot>

        <legend id='S20EY'><style id='S20EY'><dir id='S20EY'><q id='S20EY'></q></dir></style></legend>

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

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

              • <bdo id='S20EY'></bdo><ul id='S20EY'></ul>

                  本文介绍了chart.js 中多个图表上的工具提示显示错误的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I am using latest Chart.bundle.js to create multiple stacked Bar charts on same page. For example, I have 3 charts with 2 datasets. Charts are correct, but tooltips on each of the charts are always the same and showing wrong values. screenshot link. All the values are zero, which is obviously wrong.

                  Tooltips mode is index, canvas for each chart has different id, dataset variables are all different.

                  解决方案

                  My solution was somewhat similar to the @queen-juliet's answer.

                  I had a shared config variable with the data key being added and updated within a loop. Even though the multiple chart.js objects I had on the page were showing the correct data, the tooltips were shown on one (random) chart only. The solution was to declare and fill the whole config inside my loop instead.

                  这篇关于chart.js 中多个图表上的工具提示显示错误的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ChartJS Version 3 - common legend for multiple line charts(ChartJS 版本 3 - 多个折线图的常用图例)
                  Charts.js scales yaxes ticks min max doesnt work(Charts.js 缩放 yaxes 刻度 min max 不起作用)
                  How to expand the slice of donut chart in chartjs?(如何在chartjs中扩展圆环图的切片?)
                  Chart.js yAxes Ticks stepSize not working (fiddle)(Chart.js yAxes Ticks stepSize 不起作用(小提琴))
                  Rounded corners on chartJS v.2 - bar charts (with negative values)(chartJS v.2 上的圆角 - 条形图(带负值))
                  How to hide value in Chart JS bar(如何在 Chart JS 栏中隐藏值)

                  <tfoot id='FYRnP'></tfoot>
                      • <bdo id='FYRnP'></bdo><ul id='FYRnP'></ul>

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

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

                              <tbody id='FYRnP'></tbody>