Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ava/advisor): add some meta info, includes 5 chart ckb, 2 purpos… #786

Open
wants to merge 1 commit into
base: dev-refactor-pipeline2
Choose a base branch
from

Conversation

Yzing
Copy link

@Yzing Yzing commented Jun 28, 2024

…e, 1 level of measure

PR includes

  • add 5 chart ckb
  • level of measure add geo type
  • add 2 purpose type, progress and geo
  • add 1 encode pres, indicator_chart encode

@Yzing Yzing changed the base branch from dev-refactor-pipeline2 to refactor-advisor-pipeline June 28, 2024 06:11
@Yzing Yzing changed the base branch from refactor-advisor-pipeline to dev-refactor-pipeline2 June 28, 2024 06:12
@@ -1,6 +1,25 @@
import type { PureChartKnowledgeBase } from './types';

export const base: PureChartKnowledgeBase = {
indicator_chart: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以前给指标卡预留过一个命名 kpi_panel ,可以用这个名字

@@ -1,6 +1,25 @@
import type { PureChartKnowledgeBase } from './types';

export const base: PureChartKnowledgeBase = {
indicator_chart: {
id: 'indicator_chart',
name: 'Value Chart',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name 就叫 KPI Panel ?

name: 'Value Chart',
alias: ['Indicator'],
family: ['Indicators'],
def: 'A chart show indicator number, can',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这句话好像不完整?

shape: ['Other'],
encodePres: {},
dataPres: [
{ minQty: 0, maxQty: 2, fieldConditions: ['Time', 'Ordinal', 'Nominal'] },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不考虑在图表内进行数据聚合逻辑的话,指标卡好像不应该有维度?
ava 这里应该不考虑维度,有的话好像也不好限制 maxQty

{ minQty: 0, maxQty: 2, fieldConditions: ['Time', 'Ordinal', 'Nominal'] },
{ minQty: 1, maxQty: '*', fieldConditions: ['Interval'] },
],
channel: [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

channel 感觉可以加一个 'Text' ,用文本编码的数据

shape: ['Bars'],
dataPres: [{ minQty: 1, maxQty: 2, fieldConditions: ['Interval'] }],
channel: ['Length'],
recRate: 'Not Recommended',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥这几个都是 'Not Recommended' 呀

shape: ['Bars'],
dataPres: [
{ minQty: 1, maxQty: 2, fieldConditions: ['Interval'] },
{ minQty: 1, maxQty: 1, fieldConditions: ['Geo'] },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

地图类先不加好了,因为 fieldConditions 这里内置的还没有识别 Geo 类型的,所以这里加上了实际也推不出来,会有点问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants