Skip to content
Snippets Groups Projects
Unverified Commit 44b8348d authored by Mike Greiling's avatar Mike Greiling
Browse files

add ability to override graph size measurements

parent ab9ad2db
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -26,6 +26,11 @@
required: false,
default: true,
},
forceSmallGraph: {
type: Boolean,
required: false,
default: false,
},
documentationPath: {
type: String,
required: true,
Loading
Loading
@@ -165,6 +170,7 @@
:project-path="projectPath"
:tags-path="tagsPath"
:show-legend="showLegend"
:small-graph="forceSmallGraph"
/>
</graph-group>
</div>
Loading
Loading
Loading
Loading
@@ -57,6 +57,11 @@
required: false,
default: true,
},
smallGraph: {
type: Boolean,
required: false,
default: false,
},
},
 
data() {
Loading
Loading
@@ -135,7 +140,7 @@
const breakpointSize = bp.getBreakpointSize();
const query = this.graphData.queries[0];
this.margin = measurements.large.margin;
if (breakpointSize === 'xs' || breakpointSize === 'sm') {
if (this.smallGraph || breakpointSize === 'xs' || breakpointSize === 'sm') {
this.graphHeight = 300;
this.margin = measurements.small.margin;
this.measurements = measurements.small;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment