Skip to content

Commit 03b055d

Browse files
committed
fix chart overlapping
1 parent d187e39 commit 03b055d

9 files changed

Lines changed: 22 additions & 12 deletions

‎css/stylesheet.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ pre {
432432
background: #f00;
433433
}
434434

435+
.mchrt-chart {
436+
width: 100%;
437+
height: 100%;
438+
}
439+
435440
#loading-slider {
436441
position: absolute;
437442
width: 100%;

‎js/module/tracer/chart.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ChartTracer extends Tracer {
102102
}
103103

104104
const initView = (tracer) => {
105-
tracer.$wrapper = tracer.capsule.$wrapper = $('<canvas>');
105+
tracer.$wrapper = tracer.capsule.$wrapper = $('<canvas class="mchrt-chart">');
106106
tracer.$container.append(tracer.$wrapper);
107107
};
108108

‎js/module/tracer/tracer.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class Tracer {
7272
if (!this.isNew && this.lastData === data) {
7373
return true;
7474
}
75-
this.isNew = this.capsule.isNew = false;
7675
this.lastData = this.capsule.lastData = data;
7776
return false;
7877
}

‎public/algorithm_visualizer.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,11 @@ pre {
549549
background: #f00;
550550
}
551551

552+
.mchrt-chart {
553+
width: 100%;
554+
height: 100%;
555+
}
556+
552557
#loading-slider {
553558
position: absolute;
554559
width: 100%;

‎public/algorithm_visualizer.js‎

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.min.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.min.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.min.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)