|
@@ -261,7 +261,6 @@ public class ClasspathOutlookExamSprintReportRenderer implements ExamSprintRepor
|
|
|
private String renderSyllabusMasteryChart(SyllabusMasteryChart chart) {
|
|
private String renderSyllabusMasteryChart(SyllabusMasteryChart chart) {
|
|
|
double masteredPercent = percentage(chart.masteredWordCount(), chart.totalWordCount());
|
|
double masteredPercent = percentage(chart.masteredWordCount(), chart.totalWordCount());
|
|
|
double unmasteredPercent = percentage(chart.unmasteredWordCount(), chart.totalWordCount());
|
|
double unmasteredPercent = percentage(chart.unmasteredWordCount(), chart.totalWordCount());
|
|
|
- double endAngle = -90 + (Math.max(0d, Math.min(100d, masteredPercent)) * 3.6);
|
|
|
|
|
|
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
StringBuilder builder = new StringBuilder();
|
|
|
builder
|
|
builder
|
|
@@ -272,9 +271,6 @@ public class ClasspathOutlookExamSprintReportRenderer implements ExamSprintRepor
|
|
|
.append(" xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' role='img' aria-label='考纲词汇掌握情况'>")
|
|
.append(" xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' role='img' aria-label='考纲词汇掌握情况'>")
|
|
|
.append("<circle class='chart-track' cx='110' cy='110' r='76' fill='none' stroke='#e8eef7' stroke-width='18'></circle>")
|
|
.append("<circle class='chart-track' cx='110' cy='110' r='76' fill='none' stroke='#e8eef7' stroke-width='18'></circle>")
|
|
|
.append(renderProgressRing("donut-mastered-arc", "donut-mastered-full-circle", 110, 110, 76, masteredPercent, "#448aff"))
|
|
.append(renderProgressRing("donut-mastered-arc", "donut-mastered-full-circle", 110, 110, 76, masteredPercent, "#448aff"))
|
|
|
- .append("<path class='donut-unmastered-arc' d='")
|
|
|
|
|
- .append(describeArc(110, 110, 76, endAngle, 270))
|
|
|
|
|
- .append("' stroke='#e8eef7' stroke-width='18' fill='none' stroke-linecap='round'/>")
|
|
|
|
|
.append("<text class='chart-percent' x='110' y='106' text-anchor='middle' fill='#2b4c8a' font-size='28' font-weight='700'>")
|
|
.append("<text class='chart-percent' x='110' y='106' text-anchor='middle' fill='#2b4c8a' font-size='28' font-weight='700'>")
|
|
|
.append(formatTwoDecimals(masteredPercent)).append("%</text>")
|
|
.append(formatTwoDecimals(masteredPercent)).append("%</text>")
|
|
|
.append("<text class='chart-caption' x='110' y='131' text-anchor='middle' fill='#5f6b7a' font-size='14'>掌握率</text>")
|
|
.append("<text class='chart-caption' x='110' y='131' text-anchor='middle' fill='#5f6b7a' font-size='14'>掌握率</text>")
|