Updated the scale to be between 0 and 9
This commit is contained in:
@@ -319,6 +319,14 @@ export default function Stats() {
|
|||||||
</div>
|
</div>
|
||||||
<Chart
|
<Chart
|
||||||
type="line"
|
type="line"
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
data={{
|
data={{
|
||||||
labels: [...Array(31).keys()]
|
labels: [...Array(31).keys()]
|
||||||
.map((day) => {
|
.map((day) => {
|
||||||
@@ -521,6 +529,14 @@ export default function Stats() {
|
|||||||
</div>
|
</div>
|
||||||
<Chart
|
<Chart
|
||||||
type="line"
|
type="line"
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
data={{
|
data={{
|
||||||
labels: Object.keys(
|
labels: Object.keys(
|
||||||
groupBySession(
|
groupBySession(
|
||||||
@@ -574,6 +590,14 @@ export default function Stats() {
|
|||||||
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
||||||
<span className="text-sm font-bold">Reading Score Band in Interval</span>
|
<span className="text-sm font-bold">Reading Score Band in Interval</span>
|
||||||
<Chart
|
<Chart
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
type="line"
|
type="line"
|
||||||
data={{
|
data={{
|
||||||
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
||||||
@@ -603,6 +627,14 @@ export default function Stats() {
|
|||||||
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
||||||
<span className="text-sm font-bold">Listening Score Band in Interval</span>
|
<span className="text-sm font-bold">Listening Score Band in Interval</span>
|
||||||
<Chart
|
<Chart
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
type="line"
|
type="line"
|
||||||
data={{
|
data={{
|
||||||
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
||||||
@@ -632,6 +664,14 @@ export default function Stats() {
|
|||||||
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
||||||
<span className="text-sm font-bold">Writing Score Band in Interval</span>
|
<span className="text-sm font-bold">Writing Score Band in Interval</span>
|
||||||
<Chart
|
<Chart
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
type="line"
|
type="line"
|
||||||
data={{
|
data={{
|
||||||
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
||||||
@@ -661,6 +701,14 @@ export default function Stats() {
|
|||||||
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
||||||
<span className="text-sm font-bold">Speaking Score Band in Interval</span>
|
<span className="text-sm font-bold">Speaking Score Band in Interval</span>
|
||||||
<Chart
|
<Chart
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
type="line"
|
type="line"
|
||||||
data={{
|
data={{
|
||||||
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
||||||
@@ -690,6 +738,14 @@ export default function Stats() {
|
|||||||
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
<div className="w-full md:max-w-2xl border border-mti-gray-platinum p-4 pb-12 rounded-xl h-fit md:h-96">
|
||||||
<span className="text-sm font-bold">Level Score Band in Interval</span>
|
<span className="text-sm font-bold">Level Score Band in Interval</span>
|
||||||
<Chart
|
<Chart
|
||||||
|
options={{
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
min: 0,
|
||||||
|
max: 9,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
type="line"
|
type="line"
|
||||||
data={{
|
data={{
|
||||||
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
labels: intervalDates.map((date) => moment(date).format("DD/MM/YYYY")),
|
||||||
|
|||||||
Reference in New Issue
Block a user