-
Notifications
You must be signed in to change notification settings - Fork 1
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
Client report graphs #18
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6217db6
Beeswarm graph
thomassth 600777f
Participants Graph
thomassth 4a58a6c
use pre-existing test data
thomassth 8537b64
Merge branch 'main' into client-report-graphs
patcon 20268fa
Added d3 packages that match those used in client-report.
patcon a0bd01c
Moved reports data into file to align with other test data. Improved …
patcon 8976195
Add more d3 subpackages needed to get Beeswarm stories working.
patcon 2b86d62
Removed AllNull stories from Beeswarm and ParticipantsGraph stories.
patcon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"report_id": "r68fknmmmyhdpi3sh4ctc", | ||
"created": "1515990588733", | ||
"modified": "1515991093181", | ||
"label_x_neg": null, | ||
"label_y_neg": null, | ||
"label_y_pos": null, | ||
"label_x_pos": null, | ||
"label_group_0": null, | ||
"label_group_1": null, | ||
"label_group_2": null, | ||
"label_group_3": null, | ||
"label_group_4": null, | ||
"label_group_5": null, | ||
"label_group_6": null, | ||
"label_group_7": null, | ||
"label_group_8": null, | ||
"label_group_9": null, | ||
"report_name": "SamplePoll14Jan", | ||
"conversation_id": "3ntrtcehas" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,25 @@ | ||
import React from 'react' | ||
import Beeswarm from '../../../codebases/compdem/client-report/src/components/beeswarm/beeswarm' | ||
import { getMath, getConversation, getExtremity } from '../../../.storybook/utils' | ||
import { getMath, getConversation, getExtremity, getComments, getVoteColors } from '../../../.storybook/utils' | ||
|
||
import '../../../codebases/compdem/client-report/src/index.css'; | ||
|
||
const mathResult = getMath() | ||
|
||
export default { | ||
title: 'compdem/client-report/Beeswarm (not working)', | ||
title: 'compdem/client-report/Beeswarm', | ||
component: Beeswarm, | ||
} | ||
|
||
const Template = (args) => <Beeswarm {...args} /> | ||
|
||
export const AllNull = Template.bind({}) | ||
AllNull.args = { | ||
conversation: null, | ||
extremity: null, //{this.state.extremity} | ||
math: null, //{this.state.math} | ||
comments: null, //{this.state.comments} | ||
probabilities: null, //{this.state.filteredCorrelationMatrix} | ||
probabilitiesTids: null, //{this.state.filteredCorrelationTids} | ||
voteColors: null, //{this.state.voteColors} | ||
} | ||
|
||
export const Default = Template.bind({}) | ||
Default.args = { | ||
...AllNull.args, | ||
conversation: getConversation(), | ||
extremity: getExtremity(), | ||
math: mathResult, | ||
comments: null, //{this.state.comments} | ||
probabilities: null, //{this.state.filteredCorrelationMatrix} | ||
probabilitiesTids: null, //{this.state.filteredCorrelationTids} | ||
voteColors: null, //{this.state.voteColors} | ||
comments: getComments(), | ||
probabilities: {}, //{this.state.filteredCorrelationMatrix} | ||
probabilitiesTids: {}, //{this.state.filteredCorrelationTids} | ||
voteColors: getVoteColors(), //{this.state.voteColors}, | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aligned this with the response from actual API endpoint (an array)