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

Merge dev-0.3 #536

Merged
merged 80 commits into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
c43cac7
Merge pull request #497 from shanmengm/dev-0.3
RichardShan Oct 16, 2018
9f11a6d
feature drilldown
ruanhan Oct 17, 2018
9a5063c
feat(Display): add Editor or Layers based vertical and horizontal bas…
AndyFong Oct 17, 2018
d6e41f7
Merge pull request #500 from AndyFong/dev-0.3
AndyFong Oct 17, 2018
2c58ab1
drill
ruanhan Oct 17, 2018
970883b
feature drilldown
ruanhan Oct 17, 2018
bebad43
drill
ruanhan Oct 17, 2018
0d10375
Merge branch 'dev-0.3.1' of https://github.com/ruanhan1988/davinci in…
ruanhan Oct 17, 2018
b8fface
Merge pull request #501 from ruanhan/dev-0.3.1
ruanhan Oct 17, 2018
1eb3d6d
feature drillup
ruanhan Oct 18, 2018
15b5705
Merge pull request #502 from ruanhan/dev-0.3.1
ruanhan Oct 18, 2018
822addb
在widgetprops中添加model
scottsut Oct 18, 2018
341358a
Merge pull request #503 from scottsut/dev-0.3
scottsut Oct 18, 2018
c3a71a0
修改Share Dto
RichardShan Oct 18, 2018
c063a2d
Merge pull request #504 from shanmengm/dev-0.3
RichardShan Oct 18, 2018
0ba5359
fix bug drill
ruanhan Oct 18, 2018
f7ff272
Merge pull request #505 from ruanhan/dev-0.3.1
ruanhan Oct 18, 2018
0a79ed9
地图(temp)
yuhouchuhe1 Oct 18, 2018
d56d949
Merge pull request #506 from yuhouchuhe1/dev-0.3
yuhouchuhe1 Oct 18, 2018
c86b17e
chart mode wordCloud & waterfall
scottsut Oct 18, 2018
34fecdf
Merge pull request #507 from scottsut/dev-0.3
scottsut Oct 18, 2018
87635d4
feat(Widget): add basic Parallel, Sankey, Radar diagrams support
AndyFong Oct 18, 2018
e21cbb7
map
scottsut Oct 18, 2018
5f44c88
Merge pull request #508 from scottsut/dev-0.3
scottsut Oct 18, 2018
e68a183
fix(merge): fix merge conflict from upstream/dev-0.3
AndyFong Oct 18, 2018
795d3f1
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into dev-0.3
AndyFong Oct 18, 2018
ee601f7
fix(Widget): change city.json import yo geo.json
AndyFong Oct 18, 2018
25d98e2
fix(Share): fix Display Share SecondaryLayer widget null error
AndyFong Oct 18, 2018
c1a2a7e
Merge pull request #509 from AndyFong/dev-0.3
AndyFong Oct 18, 2018
8294700
feature drill toolbox
ruanhan Oct 18, 2018
cfbc5bf
fix(Display): fix Reducer array reduce initial value error and make a…
AndyFong Oct 19, 2018
ebd490e
fix(Display): fix keyboard move layers no bounds bug
AndyFong Oct 19, 2018
398e502
fix(Display): fix undo/redo via keyboards error
AndyFong Oct 19, 2018
dbd06a0
fix(Widget): fix Parallel diagram multi dimensions data error
AndyFong Oct 19, 2018
51fc4f6
Merge pull request #510 from AndyFong/dev-0.3
AndyFong Oct 19, 2018
74e6b25
some temp fix
scottsut Oct 19, 2018
758afa0
Merge pull request #511 from scottsut/dev-0.3
scottsut Oct 19, 2018
5eb41a4
feature share drill
ruanhan Oct 19, 2018
af682d5
Merge pull request #512 from ruanhan/dev-0.3.1
ruanhan Oct 19, 2018
bedde23
fix share dirll history
ruanhan Oct 19, 2018
5571787
remove console
ruanhan Oct 19, 2018
4bb3e02
Merge pull request #513 from ruanhan/dev-0.3.1
ruanhan Oct 19, 2018
4f3b0f2
add drill swtich
ruanhan Oct 22, 2018
012d00c
Merge pull request #514 from ruanhan/dev-0.3.1
ruanhan Oct 23, 2018
2e96053
合并 getChartData 与 downloadCsv
scottsut Oct 23, 2018
96c7e47
Merge pull request #515 from scottsut/dev-0.3
scottsut Oct 23, 2018
328b708
修改定时发送图片邮件逻辑
RichardShan Oct 23, 2018
dcda44e
Merge pull request #516 from shanmengm/dev-0.3
RichardShan Oct 23, 2018
bb3677a
fix drill data download csv
ruanhan Oct 23, 2018
519af33
Merge pull request #517 from ruanhan/dev-0.3.1
ruanhan Oct 23, 2018
b670b4d
fix phantomjs render error and authorized login css error
scottsut Oct 24, 2018
2c58b4b
Merge pull request #519 from scottsut/dev-0.3
scottsut Oct 24, 2018
e04842a
fix
RichardShan Oct 25, 2018
b15fe8d
Merge pull request #520 from shanmengm/dev-0.3
RichardShan Oct 25, 2018
4e97f86
fix schedule minutes
ruanhan Oct 25, 2018
40ab871
Merge pull request #521 from ruanhan/dev-0.3.1
ruanhan Oct 25, 2018
609ff2f
fix
ruanhan Oct 26, 2018
b54d466
Merge pull request #522 from ruanhan/dev-0.3.1
ruanhan Oct 26, 2018
9166ed1
feat(Widget): add Sankey,Radar,Parallel style config and enrich axis …
AndyFong Oct 26, 2018
8e43f40
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into dev-…
AndyFong Oct 26, 2018
6b58433
Merge pull request #523 from AndyFong/dev-0.3.1
AndyFong Oct 26, 2018
6e8edbb
飞行图
yuhouchuhe1 Oct 26, 2018
35641c9
Merge pull request #524 from yuhouchuhe1/dev-0.3
yuhouchuhe1 Oct 26, 2018
7cae60c
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into dev-…
AndyFong Oct 26, 2018
1459a12
fix
scottsut Oct 26, 2018
4e1b87c
fix
scottsut Oct 26, 2018
19c61cd
Merge pull request #525 from scottsut/dev-0.3
scottsut Oct 26, 2018
4b970bb
fix(Widget): fix parallel multi categories axis label bug
AndyFong Oct 26, 2018
7fa3525
fix(Widget): remove sankey legend config
AndyFong Oct 26, 2018
1632018
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into dev-…
AndyFong Oct 26, 2018
4a70ac5
fix
yuhouchuhe1 Oct 26, 2018
34a610d
Merge pull request #527 from yuhouchuhe1/dev-0.3
yuhouchuhe1 Oct 26, 2018
f00d6f3
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into dev-…
AndyFong Oct 26, 2018
2e5789b
fix(Widget): remove parallel label config and clear chart while prop …
AndyFong Oct 26, 2018
8c643cf
Merge pull request #534 from AndyFong/dev-0.3.1
AndyFong Oct 26, 2018
ff0cfd0
fix
yuhouchuhe1 Oct 26, 2018
27d0c00
Merge pull request #535 from yuhouchuhe1/dev-0.3
yuhouchuhe1 Oct 26, 2018
2f53753
update ui and shell
RichardShan Oct 26, 2018
0f9bc73
Merge branch 'dev-0.3'
RichardShan Oct 26, 2018
836fb54
fix
RichardShan Oct 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
scottsut committed Oct 26, 2018
commit 1459a12aca49e806991af88c22f0e84876fdfad3
1 change: 1 addition & 0 deletions webapp/app/containers/Widget/components/Widget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface IWidgetProps {
size?: IDataParamProperty
xAxis?: IDataParamProperty
tip?: IDataParamProperty
yAxis?: IDataParamProperty
dimetionAxis?: DimetionType
renderType?: RenderType
orders: Array<{column: string, direction: string}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export interface ISpecConfig {
}

interface ISpecSectionProps {
isShowLines: boolean
name: string
title: string
isShowLines: boolean
config: ISpecConfig
onChange: (prop: string, value: any) => void
}
Expand All @@ -51,9 +52,11 @@ export class SpecSection extends React.PureComponent<ISpecSectionProps, {}> {
}

public render () {
const { title, config, isShowLines } = this.props
const { name, title, isShowLines, config } = this.props

const {
smooth,
step,
roseType,
circle,
sortMode,
Expand Down Expand Up @@ -88,8 +91,35 @@ export class SpecSection extends React.PureComponent<ISpecSectionProps, {}> {
))

let renderHtml
switch (title) {
case '饼图':
switch (name) {
case 'line':
renderHtml = (
<div className={styles.paneBlock}>
<h4>{title}</h4>
<div className={styles.blockBody}>
<Row gutter={8} type="flex" align="middle" className={styles.blockRow}>
<Col span={10}>
<Checkbox
checked={smooth}
onChange={this.checkboxChange('smooth')}
>
平滑
</Checkbox>
</Col>
<Col span={12}>
<Checkbox
checked={step}
onChange={this.checkboxChange('step')}
>
阶梯
</Checkbox>
</Col>
</Row>
</div>
</div>
)
break
case 'pie':
renderHtml = (
<div className={styles.paneBlock}>
<h4>{title}</h4>
Expand All @@ -116,7 +146,7 @@ export class SpecSection extends React.PureComponent<ISpecSectionProps, {}> {
</div>
)
break
case '漏斗图':
case 'funnel':
renderHtml = (
<div className={styles.paneBlock}>
<h4>{title}</h4>
Expand Down Expand Up @@ -161,7 +191,7 @@ export class SpecSection extends React.PureComponent<ISpecSectionProps, {}> {
</div>
)
break
case '雷达图':
case 'radar':
renderHtml = (
<div className={styles.paneBlock}>
<h4>{title}</h4>
Expand All @@ -184,7 +214,7 @@ export class SpecSection extends React.PureComponent<ISpecSectionProps, {}> {
</div>
)
break
case '地图':
case 'map':
renderHtml = (
<div className={styles.paneBlock}>
<h4>{title}</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export class OperatingPanel extends React.Component<IOperatingPanelProps, IOpera

private getVisualData = (commonParams, specificParams, styleParams, renderType?) => {
const { cols, rows, metrics, filters } = commonParams
const { color, label, size, xAxis, tip } = specificParams
const { color, label, size, xAxis, tip, yAxis } = specificParams
const { selectedView, onLoadData, onSetWidgetProps } = this.props
const { mode, chartModeSelectedChart } = this.state
let groups = cols.items.map((c) => c.name)
Expand Down Expand Up @@ -570,6 +570,13 @@ export class OperatingPanel extends React.Component<IOperatingPanelProps, IOpera
func: l.agg
})))
}
if (yAxis) {
aggregators = aggregators.concat(yAxis.items
.map((l) => ({
column: decodeMetricName(l.name),
func: l.agg
})))
}
groups.sort()
aggregators.sort()

Expand Down Expand Up @@ -624,6 +631,7 @@ export class OperatingPanel extends React.Component<IOperatingPanelProps, IOpera
...size && {size},
...xAxis && {xAxis},
...tip && {tip},
...yAxis && {yAxis},
chartStyles: styleParams,
selectedChart: mode === 'pivot' ? chartModeSelectedChart.id : selectedCharts[0].id,
data,
Expand Down Expand Up @@ -666,6 +674,7 @@ export class OperatingPanel extends React.Component<IOperatingPanelProps, IOpera
...size && {size},
...xAxis && {xAxis},
...tip && {tip},
...yAxis && {yAxis},
chartStyles: styleParams,
selectedChart: mode === 'pivot' ? chartModeSelectedChart.id : selectedCharts[0].id,
dimetionAxis: this.getDimetionAxis(selectedCharts),
Expand Down Expand Up @@ -1132,8 +1141,9 @@ export class OperatingPanel extends React.Component<IOperatingPanelProps, IOpera
tabPane = (
<div className={styles.paramsPane}>
{spec && <SpecSection
isShowLines={isShowLines}
name={chartModeSelectedChart.name}
title={chartModeSelectedChart.title}
isShowLines={isShowLines}
config={spec as ISpecConfig}
onChange={this.styleChange('spec')}
/>}
Expand Down
2 changes: 1 addition & 1 deletion webapp/app/containers/Widget/config/chart/bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const bar: IChartInfo = {
},
style: {
spec: {

stack: false
},
label: {
showLabel: false,
Expand Down
2 changes: 1 addition & 1 deletion webapp/app/containers/Widget/config/chart/radar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {

import { IChartInfo } from '../../../../containers/Widget/components/Widget'
const radar: IChartInfo = {
id: 19,
id: 10,
name: 'radar',
title: '雷达图',
icon: 'icon-radarchart',
Expand Down
11 changes: 1 addition & 10 deletions webapp/app/containers/Widget/config/chart/sankey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ const sankey: IChartInfo = {
requireDimetions: [2, 9999],
requireMetrics: 1,
dimetionAxis: 'col',
data: {
color: {
title: '颜色',
type: 'category'
}
// tip: {
// title: '提示信息',
// type: 'value'
// }
},
data: {},
style: {
label: {
showLabel: true,
Expand Down
4 changes: 0 additions & 4 deletions webapp/app/containers/Widget/render/chart/sankey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default function (chartProps: IChartProps) {
cols,
metrics,
chartStyles,
color,
tip
} = chartProps

Expand Down Expand Up @@ -74,9 +73,6 @@ export default function (chartProps: IChartProps) {
if (cols.length) {
dimensions = dimensions.concat(cols)
}
if (color.items.length) {
dimensions = dimensions.concat(color.items.map((c) => c.name))
}

const metricsName = decodeMetricName(metrics[0].name)
const agg = metrics[0].agg
Expand Down