g1 issueshttps://code.gramener.com/cto/g1/-/issues2022-11-07T09:15:47Zhttps://code.gramener.com/cto/g1/-/issues/69Allow custom classes on FormHandler table2022-11-07T09:15:47ZS AnandAllow custom classes on FormHandler tableAdding styles to FormHandler template components (table, count, page, size, export, filters, search, dropdown, ...) would be easier if we had a class element that we could add to each.
For example,
- [ ] `columns[..].classes`: add the ...Adding styles to FormHandler template components (table, count, page, size, export, filters, search, dropdown, ...) would be easier if we had a class element that we could add to each.
For example,
- [ ] `columns[..].classes`: add the classes to the specified column's `<td>`
- [ ] `tableClasses`: adds the classes mentioned to each table. Defaults to `"table table-sm table-striped"`
- [ ] `rowClass`: adds the classes to each row. Defaults to `""`S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/68[Mapviewer] Feature request - Map options are not working2018-07-09T12:00:34ZAnvesh Dasari[Mapviewer] Feature request - Map options are not workingBellow option parameters are not working.
```map: { options: { attributionControl: false, zoomControl: false, zoomSnap: 0.1, doubleClickZoom: false } }, ```Bellow option parameters are not working.
```map: { options: { attributionControl: false, zoomControl: false, zoomSnap: 0.1, doubleClickZoom: false } }, ```https://code.gramener.com/cto/g1/-/issues/67[Mapviewer] Feature request - timeline slider2019-02-02T15:52:14ZBhanu Kbhanu.kamapantula@gramener.com[Mapviewer] Feature request - timeline slider### Summary
Represent time varying geo-data on map. User can control the time unit (year/month/seconds etc.) via a slider control.
### Benefits
[Design reference](https://gramener.invisionapp.com/d/main#/console/13330074/304743583/pre...### Summary
Represent time varying geo-data on map. User can control the time unit (year/month/seconds etc.) via a slider control.
### Benefits
[Design reference](https://gramener.invisionapp.com/d/main#/console/13330074/304743583/preview)
![gender-map](/uploads/5266b849d642d86ab45835788dfdd3af/gender-map.png)
Time component is represented here as a dropdown option. We can consider integrating the below [[reference](https://openlab.citytech.cuny.edu/ganguli-math1372-fall2014/files/2014/11/gapminder.jpg)]
![timeliner](/uploads/202fadb41212a088254bf74bf012ed31/timeliner.png)
with options for
- auto-play
- user-control for slider. i.e., click, change the time unit which updates the map colors
- positioning: horizontal or vertical, optional
Project relevance: Gender project, BMGF. This will be rolled out in 3 phases. Development will begin this week.Bharat Rbharath.r@gramener.comBharat Rbharath.r@gramener.comhttps://code.gramener.com/cto/g1/-/issues/65Scales.js: Is it possible to have discrete colour schemes, eg SchemeBlues[k] ...2019-07-31T21:17:10ZKarmanya AggarwalScales.js: Is it possible to have discrete colour schemes, eg SchemeBlues[k] for mapviewer```js
attrs: {
fillColor: { // Fill the regions
metric: 'loan_amount', // with the "score" column from state_score.json
range: 'RdYlGn', // using a RdYlGn gradient...```js
attrs: {
fillColor: { // Fill the regions
metric: 'loan_amount', // with the "score" column from state_score.json
range: 'RdYlGn', // using a RdYlGn gradient
scheme: 'schemeBlues',
scale: 'ordinal'
}}
```
Did not work, as line 58 of scale.js ``` result = d3['scale' + scale](d3[color]).domain(domain)``` doesn't let me use array notation.https://code.gramener.com/cto/g1/-/issues/64[Mapviewer] Feature request - Color scale Linear is not working2018-06-20T11:12:14ZAnvesh Dasari[Mapviewer] Feature request - Color scale Linear is not workingEX:
```javascript
fill: {
metric: 'age', // same as function(d) { return d.age }
scale: 'linear',
domain: [0, 50, 100],
range: ['red', 'yellow', 'green'],
}
```
Getting default color(black) on the map.EX:
```javascript
fill: {
metric: 'age', // same as function(d) { return d.age }
scale: 'linear',
domain: [0, 50, 100],
range: ['red', 'yellow', 'green'],
}
```
Getting default color(black) on the map.https://code.gramener.com/cto/g1/-/issues/63[Mapviewer] Feature request - Default Color code is not working2018-07-09T12:01:37ZAnvesh Dasari[Mapviewer] Feature request - Default Color code is not working![image](/uploads/a022c3fcec5827bf3df8386e542dbad1/image.png)
Default color code is not working.
Ex:
```javascript
options: {
style: {
fillOpacity: 1,
color: "wheat",
weight: 1,
fillColor: "#fff...![image](/uploads/a022c3fcec5827bf3df8386e542dbad1/image.png)
Default color code is not working.
Ex:
```javascript
options: {
style: {
fillOpacity: 1,
color: "wheat",
weight: 1,
fillColor: "#fff"
}},
attrs: {
fillColor: {
// Fill the regions
metric: "speed", // with the "speedd" column from data
range: "RdYlGn"
},
```TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/60mapviewer issues2018-07-20T04:21:37ZTejeshmapviewer issuesscale: option is ignored now. (Linear scales)
zoom: is not disabled
attribution: is not disabled
scale: option is ignored now. (Linear scales)
zoom: is not disabled
attribution: is not disabled
TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/51mapviewer fails on valid TopoJSON2018-06-04T03:50:05ZS Anandmapviewer fails on valid TopoJSONRun this code:
```
<div id="topojson-map" style="height:300px">
<script>
var map = g1.mapviewer({
id: 'topojson-map',
layers: {
worldMap: { type: 'tile', url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.pn...Run this code:
```
<div id="topojson-map" style="height:300px">
<script>
var map = g1.mapviewer({
id: 'topojson-map',
layers: {
worldMap: { type: 'tile', url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' },
usopojson: {
type: 'topojson',
url: 'us-10m.v1.json',
}
}
})
</script>
```
... with [us-10m.v1.json](https://github.com/d3/d3.github.com/blob/master/us-10m.v1.json)
This raises the following error:
![image](/uploads/49e4f787df9a494f48fa09d34f12b5d1/image.png)TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/47Documentation tweaks2018-06-06T09:59:00ZTejeshDocumentation tweaks* [ ] improve documentation for highlighter
* [x] reorder urlfilter documentation. Now, formhandler and sanddance docs are in between* [ ] improve documentation for highlighter
* [x] reorder urlfilter documentation. Now, formhandler and sanddance docs are in betweenhttps://code.gramener.com/cto/g1/-/issues/46Add eslint check to npm run test2018-06-06T10:00:41ZPratap Vardhanpratap.vardhan@gramener.comAdd eslint check to npm run testCurrently, CI build runs `npm run test`, which doesn't include `eslint` check.
One approach would be -- in `package.json`, add `npm run lint` to `pretest`?
```json
{ ....,
"scripts": {
"lint": "eslint index.js src",
...
...Currently, CI build runs `npm run test`, which doesn't include `eslint` check.
One approach would be -- in `package.json`, add `npm run lint` to `pretest`?
```json
{ ....,
"scripts": {
"lint": "eslint index.js src",
...
"pretest": "npm run lint && npm run build && browserify -s tape -r tape -o test/tape.js",
},
...
}
```https://code.gramener.com/cto/g1/-/issues/40Allow urlfilter to work with dropdown select and options2018-08-07T10:02:12ZTejeshAllow urlfilter to work with dropdown select and optionsPragnya Reddypragnya.reddy@gramener.comPragnya Reddypragnya.reddy@gramener.comhttps://code.gramener.com/cto/g1/-/issues/38Formhandler Table - Add/Delete new rows2018-04-16T09:47:05ZTejeshFormhandler Table - Add/Delete new rows### Summary
Formhandler table to support adding new rows to the table
### Benefits
Admin module - Add new user feature if done using this feature, will be a single line of configuration.
### Usage
```js
$('.formhandler').formhandler(...### Summary
Formhandler table to support adding new rows to the table
### Benefits
Admin module - Add new user feature if done using this feature, will be a single line of configuration.
### Usage
```js
$('.formhandler').formhandler({
src: ....,
...
...
addRow: true / false(default )
})
```TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/37Add FormHandler cell template2018-04-16T05:13:52ZS AnandAdd FormHandler cell templateFor table coloring, FormHandler options supports a `columns[...].template` in addition to `columns[...].format`.
By default, the template is the same for all columns, and creates a `<td>` with a link inside.
This can be overridden usin...For table coloring, FormHandler options supports a `columns[...].template` in addition to `columns[...].format`.
By default, the template is the same for all columns, and creates a `<td>` with a link inside.
This can be overridden using `columns[...].template`. This has access to the following variables:
- `value`: unformatted value of the cell data
- `display`: the formatted display value, which is the output of `.format`
- `link`: if a `.link` attribute exists, this is the result of that `.link`. Else it is `?col=value&_offset=`https://code.gramener.com/cto/g1/-/issues/36SVG support in FormHandler2018-04-16T09:21:07ZBhanu Kbhanu.kamapantula@gramener.comSVG support in FormHandler### Summary
`FormHandler` table currently does not support SVG rendering along with column data. Projects often have SVG elements (circles, rectangles, sparklines etc.) within tables.
### Benefits
With this feature, data-based SVG ele...### Summary
`FormHandler` table currently does not support SVG rendering along with column data. Projects often have SVG elements (circles, rectangles, sparklines etc.) within tables.
### Benefits
With this feature, data-based SVG elements can be rendered via `FormHandler` table. This should reduce dependency on custom code for chart placement in tables.
### Usage
TejeshTejesh2018-04-16https://code.gramener.com/cto/g1/-/issues/34Create sanddance component - bar chart2022-11-07T09:15:39ZSundeep Reddy MalluCreate sanddance component - bar chartS AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/29Implement URL targets other than hash (e.g. pushState)2019-02-04T10:05:42ZTejeshImplement URL targets other than hash (e.g. pushState)https://code.gramener.com/cto/g1/-/issues/23FormHandler enhancements2018-04-11T12:29:06ZSundeep Reddy MalluFormHandler enhancements### Summary
Enhance g1 library to enhance FormHandler usage
- [x] FormHandler table coloring and Formatting -- handled by #37
- [x] Formhandler table namespacing -- tracking in #28
- [ ] Formhandler table slider### Summary
Enhance g1 library to enhance FormHandler usage
- [x] FormHandler table coloring and Formatting -- handled by #37
- [x] Formhandler table namespacing -- tracking in #28
- [ ] Formhandler table sliderAbinesh LalAbinesh Lalhttps://code.gramener.com/cto/g1/-/issues/22MapViewer Component2018-03-06T08:14:12ZSundeep Reddy MalluMapViewer Component* [ ] overlay of other shapefiles like constituency
* [ ] ability to add multiple datasets for drill down
* [ ] logs must show if there is a data mismatch -(server side)
* [ ] integrate with formhandler
* [ ] Test cases* [ ] overlay of other shapefiles like constituency
* [ ] ability to add multiple datasets for drill down
* [ ] logs must show if there is a data mismatch -(server side)
* [ ] integrate with formhandler
* [ ] Test casesTejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/20FormHandler cell click can link to an external page / event2018-05-24T16:16:25ZS AnandFormHandler cell click can link to an external page / eventTejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/19Find and add a loading indicator component2019-02-04T10:05:08ZS AnandFind and add a loading indicator component