global: fix: bugs

This commit is contained in:
k
2024-07-26 00:44:17 +02:00
parent d3d5e7f8d7
commit f1f4ad2188
8 changed files with 45 additions and 30 deletions
@@ -81,11 +81,6 @@ export function Chart({
createEffect(
on([div, () => charts()[chartIndex]], ([div, chartConfig]) => {
console.log({
div,
chartConfig,
});
if (!div || !chartConfig) return;
const preset = presetAccessor();
@@ -359,7 +354,7 @@ export function Chart({
bottom: `${isLastDrawn() ? 32 : 0}px`,
right: `77px`,
}}
class="text-low-contrast absolute z-50 px-3 py-0.5"
class="text-low-contrast absolute z-10 px-3 py-0.5"
>
<RadioGroup size="xs" title={chartPriceModeKey} sl={chartPriceMode} />
</div>
+2 -2
View File
@@ -35,8 +35,8 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
bottom: [
{
title: `New Addresses`,
color: colors.white,
datasetPath: `/${scale}-to-created-addresses`,
color: colors.bitcoin,
datasetPath: `/${scale}-to-new-addresses`,
},
],
},
+3 -3
View File
@@ -23,20 +23,20 @@ export function createPresets(scale: ResourceScale) {
{
title: `24h`,
color: colors.up_to_1d,
datasetPath: `/date-to-up-to-1d-supply-to-circulating-supply-ratio`,
datasetPath: `/${scale}-to-up-to-1d-supply-to-circulating-supply-ratio`,
},
...fromXToYCohorts.map(({ key, id, name, legend }) => ({
title: legend,
color: colors[key],
datasetPath:
`/date-to-${id}-supply-to-circulating-supply-ratio` as const,
`/${scale}-to-${id}-supply-to-circulating-supply-ratio` as const,
})),
{
title: `15y+`,
color: colors.from_15y,
datasetPath: `/date-to-from-15y-supply-to-circulating-supply-ratio`,
datasetPath: `/${scale}-to-from-15y-supply-to-circulating-supply-ratio`,
},
],
},