MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / selectChartPreset

Function selectChartPreset

App.tsx:483–496  ·  view source on GitHub ↗
(preset: string)

Source from the content-addressed store, hash-verified

481 });
482 };
483 const selectChartPreset = (preset: string) => {
484 const nextPreset =
485 showcasePresetOptions.find((option) => option.id === preset)?.id ??
486 chartPreset;
487
488 setChartPreset(nextPreset);
489 updateShowcaseUrl({
490 chartPreset: nextPreset,
491 isVisualMode,
492 rendererMode,
493 selection: pageSelection,
494 themeMode,
495 });
496 };
497 const selectRendererMode = (mode: PreviewRendererMode) => {
498 setRendererMode(mode);
499 updateShowcaseUrl({

Callers

nothing calls this directly

Calls 1

updateShowcaseUrlFunction · 0.85

Tested by

no test coverage detected