Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked bar widths are calculated incorrectly when passed null values #1561

Closed
mattcolozzo opened this issue Sep 29, 2021 · 0 comments · Fixed by #1569
Closed

Stacked bar widths are calculated incorrectly when passed null values #1561

mattcolozzo opened this issue Sep 29, 2021 · 0 comments · Fixed by #1569
Labels
bug Concrete, reproducible bugs

Comments

@mattcolozzo
Copy link
Contributor

Stacked bar widths are calculated incorrectly when passed null values

Steps to Reproduce:

  1. replace on_load() in examples/blocks/src/editable/index.html with the following:
      function on_load() {
        const config = {
          editable: true,
          plugin: "Y Bar",
          columns: ["Profit"],
          "row-pivots": ["Order Date"],
          "column-pivots": ["Profit"],
          selectable: null,
          aggregates: null,
          filters: null,
          sort: null,
          plugin_config: {},
        };
        var el = document.getElementsByTagName("perspective-viewer")[0];
        WORKER.table(this.response, { limit: 10 }).then((table) => {
          el.load(table);
          el.toggleConfig();
          el.restore(config);
        });
      }
  1. Restart server and navigate to http://localhost:8080/src/editable/index.html

Expected Result:

all bar widths are calculated correctly, see image:

Screen Shot 2021-09-28 at 4 38 07 PM

Actual Result:

bar widths are not calculated correctly, see image:

Screen Shot 2021-09-28 at 4 36 22 PM

@texodus texodus added the bug Concrete, reproducible bugs label Sep 29, 2021
texodus pushed a commit that referenced this issue Oct 6, 2021
texodus pushed a commit that referenced this issue Oct 16, 2021
@texodus texodus linked a pull request Oct 24, 2021 that will close this issue
@texodus texodus closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants