Comments (3)
Here are the data:
{
"result": "ok",
"resultSet": {
"cols": [
{
"id": "col-aeticx2p6o",
"isAggr": false,
"label": "Category Name",
"description": null,
"type": 1,
"originAttrId": "Category.CategoryName",
"dfmt": "",
"gfct": null,
"style": {
"alignment": 0
}
},
{
"id": "col-5rtic108sg",
"isAggr": true,
"label": "Total",
"description": null,
"type": 8,
"originAttrId": "OrderDetail.UnitPrice",
"dfmt": "",
"gfct": null,
"style": {
"alignment": 0
}
}
],
"rows": [
[
"Beverages",
11811.65
],
[
"Condiments",
4605.300000000001
],
[
"Confections",
7549.29999999999
],
[
"Dairy Products",
9875.800000000001
],
[
"Grains/Cereals",
4164.3
],
[
"Meat/Poultry",
7417.33
],
[
"Produce",
4786.449999999999
],
[
"Seafood",
6290.779999999995
]
]
},
"meta": {
"totalRecords": 8,
"offset": 0
},
"aux": {
"Prop1": "Value1",
"Prop2": 25
}
}
from easydata.
Detailed tasks:
- Add
EasyDashboardView
class similar toEntityDataView
(/easydata.js/packs/crud/src/views/entity_data_view.ts
) - Add
EasyDashboardGridWidget
andEasyDashboardChartWidget
classes that will be initialized inEasyDashboardView
- Pass the hard-coded data to
EasyDashboardView
and render both widgets according to the passed data. To render the widgets, useDomElementBuilder
class viadomel()
function as we did in all our UI controls before (EasyGrid
,TextFilterWidget
, etc).
from easydata.
The next step will be creating the server-side infrastructure that supports datasets definition and fetching. So, here is what we need to do:
- The
DataSources
list inEasyDataManager
class - Each DataSource is an object that can give away data according to request parameters. There will be SqlDataSource (a data source that uses SQL query to get data) and SqlTableDataSource (a data source that is mapped on some DB table)
- So, we will need CRUD operations for Data Sources
- Additionally, we will modify
FetchDataset
so it will be able to work will kinds of data sources
from easydata.
Related Issues (20)
- Detect all easy data maps
- Deletion of "es" in headers
- Alias for entities/Menu Allow configure/modification of entities page/menu
- Pre-processing entity before save to db
- Broken links on MVC template
- Show a specific column when referencing another entity HOT 1
- Wrong IDs are used when clicking Edit/Delete buttons after filtering with the search
- Using the Sample App(s) - can't add new Entity
- List entities at a side bar HOT 3
- Using a custom query in lookup view
- Combobox
- Show pictures in result sets
- Breaking change in EFCore 8.0.0-preview.7.23375.4 HOT 4
- SetIndex method is not functional for reordering attributes
- Некорректное сопоставление записей в результирующей выборке поиска HOT 4
- Record list isn't refreshed after delete
- Entity Framework 6 Support HOT 2
- Set up entity level authentication
- Model class name and items per page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easydata.