简体   繁体   中英

Can cube.js be used to access raw data as well as aggregated data?

For example, if I have a Postgres table with columns for sensor_id, temperature and time_recorded, would I still be able to generate a chart that shows temperature (y) over time (x)?

Yes, that's possible with 2 steps:

  1. defining a data schema for that table.
  2. define a query to get data from that data schema.

after retrieving the data you can feed it to the chart library of your choice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM