superset/caravel/assets/javascripts/explorev2/components
vera-liu 89df2fcf76 Adjusted top margin of heatmap plot to get it working in V2 (#1361)
* Adjusted top margin of heatmap plot to get it working in V2

Problem:
The heatmap in V2 was shifted towards the top margin of slice
container, this was because in v2 slice name header was part of the
container body, while in v1 the header was separately defined in
explore.html template.

Solution:
To get heatmap properly shown in V2, we need to
take into account the height of the slice_name header. Adding to
margin_top will shift the plot in V1 too, but it won't make a big
difference to the look.

Ideally when we renovate slice container in future PR we would defined a
height for slice_name header and take it into account for all
visualization files.

* Added panel header height to margin_top for explore v2

* Use getBoundingClientRect to get header height

* Use slice-header for id of panel-title
2016-10-25 10:44:29 -07:00
..
ChartContainer.jsx Adjusted top margin of heatmap plot to get it working in V2 (#1361) 2016-10-25 10:44:29 -07:00
ChartControl.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
ControlPanelsContainer.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
ExploreViewContainer.jsx [explore-v2] make chart container work with existing visualization files (#1333) 2016-10-14 12:54:18 -07:00
Filters.jsx Added controls for Table Viz (#1253) 2016-10-05 14:53:51 -07:00
GroupBy.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
NotGroupBy.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
Options.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
SelectArray.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
SqlClause.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00
TimeFilter.jsx Put formData in store (#1281) 2016-10-07 14:53:36 -07:00