Skip to content

Commit

Permalink
Centered Treemap & removed chart title from d3fc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed May 27, 2019
1 parent 4d90012 commit f498a80
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/static/css/material.dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ perspective-viewer {
--hypergrid-header--font-size: 12px;
--hypergrid--font-family: "Open Sans";
--hypergrid-header--font-family: "Open Sans";
--d3fc-treedata-axis--lines: none;
}
.homeContainer {
/******************************************************************************
Expand Down Expand Up @@ -141,7 +142,7 @@ perspective-viewer {
--d3fc-series-8: #7f7f7f;
--d3fc-series-9: #bcbd22;
--d3fc-series-10: #17becf;
--d3fc-gradient-full: linear-gradient(#4d342f 0%, #e4521b 22.5%, #feeb65 42.5%, #f0f0f0 50%, #dcedc8 57.5%, #42b3d5 67.5%, #1a237e 100%);
--d3fc-gradient-full: linear-gradient(#feeb65 0%, #e4521b 22.5%, #4d342f 42.5%, #222222 50%, #1a237e 57.5%, #42b3d5 67.5%, #dcedc8 100%);
--d3fc-gradient-positive: linear-gradient(#222222 0%, #1a237e 35%, #42b3d5 70%, #dcedc8 100%);
--d3fc-gradient-negative: linear-gradient(#feeb65 0%, #e4521b 35%, #4d342f 70%, #222222 100%);
--highcharts-heatmap-gradient-full: linear-gradient(#feeb65 0%, #e4521b 22.5%, #4d342f 42.5%, #222222 50%, #1a237e 57.5%, #42b3d5 67.5%, #dcedc8 100%);
Expand Down
12 changes: 12 additions & 0 deletions packages/perspective-viewer-d3fc/src/less/chart.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
padding: 15px;
overflow: hidden;

&.d3_heatmap, &.d3_treemap {
d3fc-group.cartesian-chart {
grid-template-columns: minmax(0em, max-content) auto 1fr auto minmax(0em, max-content);
grid-template-rows: minmax(0em, max-content) auto 1fr auto minmax(0em, max-content);
}
}

.chart-label {
display: none;
}

&.d3_heatmap {
padding-right: 120px;
}
Expand Down Expand Up @@ -434,4 +445,5 @@
padding: 0;
list-style-type: none;
}

}

0 comments on commit f498a80

Please sign in to comment.