ngx-deebodata 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@ Commercial data grid with virtual scroll, integrated charts, row grouping, colum
4
4
 
5
5
  # Licensing
6
6
 
7
- Commercial license - However, you can install this module and test the full functionality when developing locally at **http://localhost:4200/**
7
+ **Commercial license** - However, you can install this module and test the full functionality when developing locally at **http://localhost:4200/**
8
8
 
9
9
  To deploy to any live url, you need to obtain a deployment license for each developer on the project from https://deebodata.com/data-grid-checkout/angular
10
10
 
@@ -40,11 +40,12 @@ import { NgxDeebodata } from 'ngx-deebodata';
40
40
  [removePieCovers]="false"
41
41
  [altRowColor]="'#ececec'"
42
42
  [myColumnStyles]="[]"
43
+ [myColumnValueColors]="[]"
43
44
  [forceGrouping]="['column_needs_grouping']"
44
45
  ></ngx-deebodata>
45
46
  ```
46
47
 
47
- It's best to pass hex colors to **color1, color2, pieGraphColors, & altRowColor,** but css colors work too
48
+ It's best to pass hex or rgb colors to **color1, color2, pieGraphColors, & altRowColor,** but css colors work too
48
49
 
49
50
  Always pass a **px** string value to defRowHgt like '50px'
50
51
 
@@ -108,6 +109,40 @@ handleCellEdit(event: CellEdit) {//executes on cell edit if editable isn't false
108
109
  ></ngx-deebodata>
109
110
  ```
110
111
 
112
+ **To pass Column Value Colors for Charts**
113
+
114
+ For a given column with limited distinct values (qualifies for grouping), give each value it's own color in the charts (pie, bar, line)
115
+
116
+ - In the .ts component you want to use the data grid in
117
+
118
+ ```
119
+ import { ColumnValueColors, NgxDeebodata } from 'ngx-deebodata';
120
+ ```
121
+
122
+ - in the exported class
123
+
124
+ ```
125
+ valueColors: ColumnValueColors[] = [
126
+ {
127
+ column: "party",
128
+ valueColors: [
129
+ { value: "Republican", color: "rgb(255, 0, 0)" },
130
+ { value: "Democrat", color: "rgb(0, 0, 255)" },
131
+ { value: "Independent", color: "rgb(0, 255, 0)" }
132
+ ]
133
+ }
134
+ ]
135
+ ```
136
+
137
+ - In the template of the component
138
+
139
+ ```
140
+ <ngx-deebodata
141
+ [data]="signalArrayOfObjects()"
142
+ [myColumnValueColors]="valueColors"
143
+ ></ngx-deebodata>
144
+ ```
145
+
111
146
  **To pass Column Styles**
112
147
 
113
148
  The only css values processed now are color, font_size, font_weight, and text_decoration.