Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
e339d0c5
Unverified
Commit
e339d0c5
authored
7 years ago
by
Kyle Doherty
Browse files
Options
Downloads
Patches
Plain Diff
add histograms to table page
parent
be3b4015
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/xray/containers/TableXRay.jsx
+33
-29
33 additions, 29 deletions
frontend/src/metabase/xray/containers/TableXRay.jsx
with
33 additions
and
29 deletions
frontend/src/metabase/xray/containers/TableXRay.jsx
+
33
−
29
View file @
e339d0c5
...
...
@@ -9,6 +9,8 @@ import {
changeCost
}
from
'
metabase/reference/reference
'
import
Histogram
from
'
metabase/xray/Histogram
'
import
COSTS
from
'
metabase/xray/costs
'
import
CostSelect
from
'
metabase/xray/components/CostSelect
'
...
...
@@ -76,36 +78,38 @@ class TableXRay extends Component {
const
{
constituents
,
params
}
=
this
.
props
return
(
<
div
className
=
"wrapper"
style
=
{
{
marginLeft
:
'
6em
'
,
marginRight
:
'
6em
'
}
}
>
<
div
className
=
"my4 flex align-center py4"
>
<
h1
>
Xray
</
h1
>
<
div
className
=
"ml-auto"
>
Fidelity:
<
CostSelect
currentCost
=
{
params
.
cost
}
onChange
=
{
this
.
changeCost
}
/>
<
LoadingAndErrorWrapper
loading
=
{
!
constituents
}
>
{
()
=>
<
div
className
=
"wrapper"
style
=
{
{
paddingLeft
:
'
6em
'
,
paddingRight
:
'
6em
'
}
}
>
<
div
className
=
"my4 flex align-center py4"
>
<
h1
>
Xray
</
h1
>
<
div
className
=
"ml-auto"
>
Fidelity:
<
CostSelect
currentCost
=
{
params
.
cost
}
onChange
=
{
this
.
changeCost
}
/>
</
div
>
</
div
>
<
ol
className
=
"Grid Grid--1of3"
>
{
constituents
.
map
(
c
=>
{
return
(
<
li
className
=
"Grid-cell"
>
<
div
className
=
"full"
>
<
Link
to
=
{
`xray/field/
${
c
.
field
.
id
}
/approximate`
}
>
{
c
.
field
.
display_name
}
<
div
style
=
{
{
height
:
120
}
}
>
<
Histogram
histogram
=
{
c
.
histogram
}
/>
</
div
>
</
Link
>
</
div
>
</
li
>
)
})
}
</
ol
>
</
div
>
</
div
>
<
LoadingAndErrorWrapper
loading
=
{
!
constituents
}
>
{
()
=>
<
ol
>
{
constituents
.
map
(
c
=>
{
console
.
log
(
c
)
return
(
<
li
>
<
div
className
=
"full"
>
<
Link
to
=
{
`xray/field/
${
c
.
field
.
id
}
/approximate`
}
>
{
c
.
field
.
display_name
}
</
Link
>
</
div
>
</
li
>
)
})
}
</
ol
>
}
</
LoadingAndErrorWrapper
>
</
div
>
}
</
LoadingAndErrorWrapper
>
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment