@undp/data-viz 0.0.70 → 0.0.71
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/dist/index.cjs +89 -89
- package/dist/index.d.ts +2174 -510
- package/dist/index.js +23326 -22525
- package/dist/index.umd.js +90 -90
- package/package.json +1 -1
- package/readme.md +4 -4
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -87,13 +87,13 @@ Adding a new chart or graph to the library requires multiple steps:
|
|
|
87
87
|
* Add the code for the graph to `./src/Components/Elements/Graphs/` folder
|
|
88
88
|
* Once the code is done add the id of the graph to either `GraphTypeForGriddedGraph` or `GeoHubGraphType` in `./src/Types.tsx` depending if you want it to be available in `GriddedGraphDashboard` or not
|
|
89
89
|
* Add the missing settings to `GraphSettingsDataType` in `./src/Types.tsx`
|
|
90
|
-
* Add the graph configuration settings in `./src/Utils/transformData/graphConfig.
|
|
91
|
-
* Add the graph to the list in `./src/Utils/
|
|
92
|
-
* Add the data schema for the graph and graph settings schema to the `./src/Schemas/schemaList.tsx`
|
|
90
|
+
* Add the graph configuration settings in `./src/Utils/transformData/graphConfig.ts`
|
|
91
|
+
* Add the graph to the list in `./src/Utils/getGraphList.tsx`
|
|
92
|
+
* Add the data schema for the graph and graph settings schema to the `./src/Schemas/schemaList.tsx`. Also add the graph to the `getGraphConfigChartConfigIdEnum` variable in the same file.
|
|
93
93
|
* Also add the missing properties to the `SettingSchema` in `./src/Schemas/schemaList.tsx`
|
|
94
94
|
* Add the data schema and settings schema to the `getDataSchema` and `getSettingsSchema` functions in `./src/Schemas/getSchema.tsx`
|
|
95
95
|
* Add the graph to the `graphComponent` and `getGraphProps` functions in `./src/Components/Dashboard/GraphEl.tsx`
|
|
96
|
-
* Finally add an export in `./src/index.
|
|
96
|
+
* Finally add an export in `./src/index.ts`
|
|
97
97
|
|
|
98
98
|
Adding documentation and stories in storybook:
|
|
99
99
|
* Add a new story in `./src/stories/Graph+Map+Chart` folder
|