FAQ/How-Do-I-Customize-A-Visualization.md
... ...
@@ -79,18 +79,18 @@ To interact with the report, there are four variables in the context where the v
79 79
80 80
`if (!util.validate("VIS_ID", VIS_FORMJSASTATUS, VIS_CONTEXT, { svg: true, input: function () { return VIS_COLUMNS[0].type == 'DateTime'; }})) return;`
81 81
82
-* If validation fail, html template of visualization will be cleared and user will be notified with enumeration of encountered problems. In that case util.validate() will return false, any further code statement should be skipped and execution aborted.
82
+* If validation fails, HTML template of the visualization will be cleared and user will be notified with enumeration of any problems. In that case util.validate() will return false, any further code statement should be skipped and execution terminated.
83 83
84
-To use use full list of available utilities, create an instance of ReportScripting by using its function as constructor, pass visualization id and all four context variables:
84
+To use the full list of available utilities, create an instance of ReportScripting by using its function as constructor, pass visualization id and all four context variables:
85 85
86 86
`var vis = new util("VIS_ID", VIS_FORMJSASTATUS, VIS_COLUMNS, VIS_ROWS, VIS_CONTEXT);`
87 87
88
-Created object have several privileged methods, which give possibility to build different data structures from plain report table suitable for current needs
88
+The created object will have several privileged methods, which gives the possibility to build different data structures from a plain report table.
89 89
90
-*collectTree - build tree-like structure. Will not return result, which can be found here: vis.items. This method will create clear parent->children structure without any customization.
90
+* collectTree - builds a tree-like structure. Will not return result, which will be found in vis.items. This method will create a clear parent->children structure without any customization.
91 91
92
-* traverseTree - if called after collectTree, will return root object with customized tree structure built from vis.items. This method is recursive and should be called with single parameter - callback function, which accept one "context" parameter { parentNode, node, indexes, level, fi, isLeaf }, which should be updated during callback execution.
92
+* traverseTree - if called after collectTree, will return root object with customized tree structure built from vis.items. This method is recursive and should be called with single parameter, a callback function, which accepts one "context" parameter { parentNode, node, indexes, level, fi, isLeaf }, which should be updated during callback execution.
93 93
94
-* collectMonthlyData - will collect data from the report with three fields: category (GROUP), date (Group (Year & Month)) and one integer value
94
+* collectMonthlyData - will collect data from the report with three fields: category (GROUP), date (Group (Year & Month)) and one integer value.
95 95
96
-* collectGraph - will create oriented graph where first two report fields used as nodes and other integer fields determines as metrics
... ...
\ No newline at end of file
0
+* collectGraph - will create oriented graph where first two report fields are used as nodes and the other integer fields determined as metrics.
... ...
\ No newline at end of file