Make CEO gauge preview update as changes are made

pull/10616/head
Alex P 2017-11-22 15:22:58 -08:00
parent 0d2b1a6cde
commit 6fdba650ec
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,7 @@ const DashVisualization = (
axes, axes,
type, type,
name, name,
colors,
templates, templates,
timeRange, timeRange,
autoRefresh, autoRefresh,
@ -22,6 +23,7 @@ const DashVisualization = (
<VisualizationName defaultName={name} onCellRename={onCellRename} /> <VisualizationName defaultName={name} onCellRename={onCellRename} />
<div className="graph-container"> <div className="graph-container">
<RefreshingGraph <RefreshingGraph
colors={colors}
axes={axes} axes={axes}
type={type} type={type}
queries={buildQueries(proxy, queryConfigs, timeRange)} queries={buildQueries(proxy, queryConfigs, timeRange)}
@ -58,6 +60,15 @@ DashVisualization.propTypes = {
}), }),
onCellRename: func, onCellRename: func,
resizerTopHeight: number, resizerTopHeight: number,
colors: arrayOf(
shape({
type: string.isRequired,
hex: string.isRequired,
id: string.isRequired,
name: string.isRequired,
value: string.isRequired,
}).isRequired
),
} }
DashVisualization.contextTypes = { DashVisualization.contextTypes = {