<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 中多个图表上的工具提示显示错误的值

        时间:2023-11-01
          <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 仅显示特定刻度的大字体 下一篇:如何在 react 项目中隐藏 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>
                  1. <legend id='FYRnP'><style id='FYRnP'><dir id='FYRnP'><q id='FYRnP'></q></dir></style></legend>