#989 Create a function that creates graphs. #1150
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!1150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#989"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added a Graph component with line graph so far fully supported.
features:
i think alot of features can be stripped out and used for other types of graphs in the future making them much easier to implement.
#989
Review on #989
Whats done
A reusable
Graphcomponent has been added. The current implementation supports line graphs with dynamic resizing, y-axis labels, graph dots, and a legend.Tested on Windows using Chrome
TestGraph.js.Inspected following files
frontend/src/components/Graphs/Graph.jsIndentation/code styling
Naming convention
Component names follow PascalCase:
GraphLineGraphBarGraphPieGraphVariable names mostly follow camelCase.
Printed text uses and follows localization standards
Hardcoded visible text exists and should use localization if shown to users:
No valid data availible"Is not a valid/supported graph type."barpieSpelling issue:
availibleshould beavailable.Comments
General code quality
The line graph implementation looks reusable.
Missing React
keyprops in some mapped SVG elements.BarGraphandPieGraphare currently only placeholders.Edge cases should be handled better, for example:
Inline styles and hardcoded colors are used.
frontend/src/features/Graphs/TestGraph.jsIndentation/code styling
Naming convention
TestGraphViewfollows PascalCase.Datashould be renamed todataaccording to camelCase variable naming convention.Printed text uses and follows localization standards
Comments
General code quality
What needs to be done
frontend/src/components/Graphs/Graph.jskeyprops for mapped elements.availible→available.barandpieoptions until they are implemented.frontend/src/features/Graphs/TestGraph.jsDatatodata.Conclusion
Review on #989, PR #1150
Whats done
Reviewed the new graph code changes and testing app from latest commit makign changes based on previous review
Tested on Linux using Firefox
Inspected following files
What needs to be done
Conclusion
because we can't see the graph creation in a view this will not be merged.
Pull request closed