-
Notifications
You must be signed in to change notification settings - Fork 145
Add new tags for dashboard, chart, overview. #65
Comments
@abz53378: Thanks for writing down the spec. How about to use And we might still need to have a new tag for picking the time range of data. Like Google Analytics. I think it would be like a container tag which can contain other UI tags but currently, I'm not sure how to control data flow. It might be like: <datepicker options={} default="" showDelta={true}>
<display ui="list" graphql={``} />
</datepicker> |
Agree with @chihsuan, tags should be more specific the better, cause we might adding additional tags in the future. +1 for |
Thanks, @chihsuan, The About the data flow of components, I will open another issue to discuss the implementation. But in brief, these components will fetch the data by themselves. For examples, this is a simple example of /**
const where = {
date_gt: 2018-08-17T04:17:25Z
}
const grahpql = `
query AggregateOrders($where: WhereInput!) {
aggregateOrders(where: $where) {
count
}
}
`
**/
// our <indicator> components
const Amount = ({ where, graphql }) => (
<Query query={gql`${graphql}`} variables={{ where }}>
{({ loading, error, data }) => {
if (loading) return null;
if (error) return `Error!: ${error}`;
return (
<div >
{data.aggregateOrders.count}
<div/>
);
}}
</Query>
); |
@abz53378: As we discussed, I'm trying to implement new chart tags. I am going to create a chart model in canner-script. Since we would need to wrap react-vega components as our components. Should we have a repo for chart components like |
Yes, you can create a repo for that. Could called ‘vega-canner-components’?
Chi-Hsuan Huang <notifications@github.com>於 2018年8月18日 週六,下午1:28寫道:
@abz53378 <https://github.com/abz53378>: As we discussed, I'm trying to
implement new chart tags. I am going to create a chart model in
canner-script. Since we would need to wrapper react-vega components as our
components. Should we have a repo for chart components like
antd-canner-components to map the chart tag to its component?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#65 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKOHWNKX4ZB8MxWk1aM1lKPp8GO5ZfEks5uR6XygaJpZM4V_yOW>
.
--
Canner / Howard Chi
https://www.canner.io
Email: howard@canner.io
|
@chilijung: Thank you for the quick reply. Sure, |
Merged, so I closed it. |
Overview
We will support few tags for
overview
,chart
,dashboard
features:Usage
Implementation
For now,
canner-script
actually generate an object contains several required information for canner:source
To implement these tags, we can just add a
pageSchema
key in the object, and its value is a JSON object, same asCannerSchema
.The example of pageSchema:
Notes
keyName
of<page />
is required because canner will take it as theroute
of this page.keyName
passing to<display />
and<chart />
, we should randomly generate one for it.Discussion
The text was updated successfully, but these errors were encountered: