badd716f0557a2c5e123eee9ef0f3a31a65e59bd
Guides/Izenda-Vision.md
| ... | ... | @@ -1,16 +1,26 @@ |
| 1 | 1 | [[_TOC_]] |
| 2 | 2 | |
| 3 | +#Introduction to Visualizations |
|
| 4 | + |
|
| 3 | 5 | Izenda Visualizations are a D3-based visual supplement to Izenda’s core charting engine. Visualizations are rendered in a chart report part, but are built on the columnar data in your summary or fields tab. These columns must be arranged in a specific order to provide valid data for certain visualizations. This document lists which column arrangement works with each visualization style. |
| 4 | 6 | |
| 5 | 7 | Given that visualizations rely on the teamwork between the chart itself and the column data which supports it, this means that visualizations may not be easy to include in a complex report. Currently, any data in the Summary tab will be read, and if this tab is empty, the Fields tab will be used instead. |
| 6 | 8 | |
| 7 | 9 | In Izenda terms, a field and a column are the same thing. This documentation will refer to fields and columns interchangeably. To be precise, fields are listed from top to bottom on the Fields tab, and displayed as columns from left to right. |
| 8 | 10 | |
| 9 | -**Field Order** |
|
| 11 | +#Lifecycle of a VIS report: |
|
| 12 | + |
|
| 13 | +1. To render a Detail or Summary part of report us two tables of type .NET DateTable (SourceTable - raw data, FormattedTable - formated data) are generated based on the corresponding datasource. Next, these tables are used to render html tables (grid). |
|
| 14 | +2. After that starts the process of generation of visualization. |
|
| 15 | +3. Forming all necessary data: number of fields, field types and data of the report. |
|
| 16 | +4. Data for the visualization is generated using tables "SourceTable" and "FormattedTable". Data generated on the server in the form of the object that contains info about rows and columns. Then it is serialized to a JSON string and sent to the client side. |
|
| 17 | +5. On the client side data is deserialized to JS object and used to render visualization. |
|
| 18 | + |
|
| 19 | +##Field Order |
|
| 10 | 20 | |
| 11 | 21 | When creating a visualization, you must pay specific attention to the field order. This is the idea that fields, from top to bottom, can be numbered - the first field in the list is 1, the second field is 2, and so on. Likewise, the leftmost column is column 1, the column immediately to the right is column 2, and so on. This field order is critical, as visualizations demand a specific order to fields which dictates not only if they will be used, but how they will be used. |
| 12 | 22 | |
| 13 | -**Field Order and Group Hierarchy** |
|
| 23 | +##Field Order and Group Hierarchy |
|
| 14 | 24 | |
| 15 | 25 | Some visualizations permit multiple group fields. Group field hierarchy must be placed in proper field order. This means highest category first, and lowest category last. Here are some examples: |
| 16 | 26 | |
| ... | ... | @@ -22,29 +32,29 @@ Tera, Giga, Mega, Kilo |
| 22 | 32 | |
| 23 | 33 | Visualizations read the exact field order as you define it. If I place Neighborhood before Country, my visualization will not make any sense by definition. Double check that fields are in the correct order if the visualization does not appear to be correct. |
| 24 | 34 | |
| 25 | -**Field Sorting** |
|
| 35 | +##Field Sorting |
|
| 26 | 36 | |
| 27 | 37 | Visualizations sort in an order defined by the columns in the Summary or Fields tab. This order does not change if you select a different metric, which means that you can be viewing Metric B as sorted by Metric A. Currently, the only way to change the sort order is to change the sorting behavior defined by the arrangement of fields. If you are experiencing undesired or confusing sort behavior, check to make sure that the field sort order is correct. |
| 28 | 38 | |
| 29 | 39 | Count(Order ID), Year(Order Date), Count(Customer ID), Ship City, Country |
| 30 | 40 | |
| 31 | -**Drill-downs and Dynamic Filtering** |
|
| 41 | +##Drill-downs and Dynamic Filtering |
|
| 32 | 42 | |
| 33 | 43 | Some visualizations support dynamic filtering and drill-down-like behavior. Currently, a full drill-down - connecting through a visualization to another Izenda report - is not possible. A visualization can exist on a child report, and can exist on a parent report, but no part of the visualization is clickable to activate a downhill. The drill-down terminology in this case means that some visualizations, like heat map and sunburst, can drill-down within themselves. This is more accurately described as dynamic filtering. Dynamic filtering the visualization will also filter the linked summary or detail view. |
| 34 | 44 | |
| 35 | -**Fields labeled with a plus (+) sign** |
|
| 45 | +##Fields labeled with a plus (+) sign |
|
| 36 | 46 | |
| 37 | 47 | Some visualizations can accept an indefinite number of fields as metrics. These fields are noted with a + after the field number order. That is to say, if a visualization requires 3 and only 3 fields, its fields will be listed as 1, 2, 3. However, if a visualization can have multiple fields after the first two fields which define its boundaries, its fields would be listed as 1, 2, 3+. In other words, after the mandatory fields 1 and 2, we could have fields 3, 4, 5, 6 which all serve as additional selectable metrics. Generally only one of these fields will be displayed at a time, but with the option of selecting between them. |
| 38 | 48 | |
| 39 | -**Fields labeled with ellipsis (...)** |
|
| 49 | +##Fields labeled with ellipsis (...) |
|
| 40 | 50 | |
| 41 | 51 | Some visualizations can accept a large number of fields as groups. These fields are noted with a … after the field order number. This means that if a visualization accepts multiple levels of hierarchical data, I could have 5 group fields representing hierarchy in fields 1 through 5, and begin my metrics at field 6. In this documentation, this will be noted as Field 1…, Field 2. This does not mean that the metric needs to be in the actual second field. This means that the metric field(s) must be placed after all of the group fields in fields 1 through X. |
| 42 | 52 | |
| 43 | -**Fields labeled with a question mark (?)** |
|
| 53 | +##Fields labeled with a question mark (?) |
|
| 44 | 54 | |
| 45 | 55 | Some visualizations do not care where a field is, so long as it exists. These fields are noted with a ? after the field order number. This means that you don’t necessarily have to place that field in the noted order, if you have some reason not to follow the recommended best practice. |
| 46 | 56 | |
| 47 | -**Terms** |
|
| 57 | +##Terms |
|
| 48 | 58 | |
| 49 | 59 | These terms refer to the types of columns that each visualization reads. |
| 50 | 60 |