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

copied percentage calculation in example #3116

Conversation

thomend
Copy link
Contributor

@thomend thomend commented Jul 22, 2023

I added @jonmmease 's implementation of the percentage calculation (#3101) to the diverging stacked bar chart example.

It was mentioned in (#3103) that this would be helpful.

The example now slightly differs from the Vega-Lite example since there is a small error in the hard-coded data provided in the Vega-Lite example (percentage should not be 0 when there are 11 answers):

{
        "question": "Question 2",
        "type": "Strongly agree",
        "value": 11,
        "percentage": 0,
        "percentage_start": 63.6,
        "percentage_end": 63.6
      }

@binste would be great if you can again test run the documentation on your machine since it did not work properly on the github code-space.

@binste binste linked an issue Jul 23, 2023 that may be closed by this pull request
@jonmmease
Copy link
Contributor

Thanks a lot @thoemi123!

@jonmmease jonmmease merged commit bf8d98b into vega:master Jul 23, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compute percentage columns in Diverging Stacked Bar Chart example
2 participants