mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-13 12:08:13 -07:00
global: fix: bugs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user