Giter VIP home page Giter VIP logo

Comments (3)

korzh avatar korzh commented on September 25, 2024

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.

korzh avatar korzh commented on September 25, 2024

Detailed tasks:

  1. Add EasyDashboardView class similar to EntityDataView (/easydata.js/packs/crud/src/views/entity_data_view.ts)
  2. Add EasyDashboardGridWidget and EasyDashboardChartWidget classes that will be initialized in EasyDashboardView
  3. Pass the hard-coded data to EasyDashboardView and render both widgets according to the passed data. To render the widgets, use DomElementBuilder class via domel() function as we did in all our UI controls before (EasyGrid, TextFilterWidget, etc).

from easydata.

korzh avatar korzh commented on September 25, 2024

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 in EasyDataManager 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.