ui fixesg
This commit is contained in:
parent
ab6af13bc8
commit
9ca0e51b3c
@ -47,11 +47,16 @@
|
|||||||
const plotDataset = [...dataset]?.sort(
|
const plotDataset = [...dataset]?.sort(
|
||||||
(a, b) => new Date(a?.date) - new Date(b?.date),
|
(a, b) => new Date(a?.date) - new Date(b?.date),
|
||||||
);
|
);
|
||||||
const xData = plotDataset?.map((item) => item?.date);
|
const xData = plotDataset
|
||||||
|
?.filter((item) => item?.value !== null) // Filter out items where value is null
|
||||||
|
.map((item) => item?.date); // Map to the date property
|
||||||
|
|
||||||
let valueList = [];
|
let valueList = [];
|
||||||
for (let i = 0; i < plotDataset?.length; i++) {
|
for (let i = 0; i < plotDataset?.length; i++) {
|
||||||
|
if (plotDataset[i]?.value !== null) {
|
||||||
valueList.push(plotDataset[i]?.value);
|
valueList.push(plotDataset[i]?.value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
animation: false,
|
animation: false,
|
||||||
@ -213,7 +218,9 @@
|
|||||||
<td
|
<td
|
||||||
class="text-white text-sm sm:text-[1rem] text-right whitespace-nowrap border-b-[#09090B]"
|
class="text-white text-sm sm:text-[1rem] text-right whitespace-nowrap border-b-[#09090B]"
|
||||||
>
|
>
|
||||||
{item?.value !== null ? abbreviateNumber(item?.value) : '-'}
|
{item?.value !== null
|
||||||
|
? abbreviateNumber(item?.value)
|
||||||
|
: "-"}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td
|
<td
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user