Toolverse
All skills

g2-legend-expert

by antvis

Expert skill for G2 legend development - provides comprehensive knowledge about legend rendering implementation, component architecture, layout algorithms, and interaction handling. Use when implementing, customizing, or debugging legend functionality in G2 visualizations.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
antvis
Category
Data Science

About this skill

Expert skill for G2 legend development - provides comprehensive knowledge about legend rendering implementation, component architecture, layout algorithms, and interaction handling. Use when implementing, customizing, or debugging legend functionality in G2 visualizations.

How to use

  1. Zainstaluj umiejętność w swoim środowisku Claude lub Copilot, wskazując repozytorium antvis/G2 z katalogu .claude/skills/g2-legend-expert.

  2. Załaduj umiejętność przed pracą nad legendami w G2, aby uzyskać dostęp do pełnej dokumentacji procesu renderowania legend.

  3. Kiedy implementujesz legendę, opisz swój cel (np. "Chcę utworzyć legendę kategoryczną dla skal koloru") — umiejętność wskaże, czy użyć legendCategory czy legendContinuous na podstawie typu skali.

  4. Jeśli dostosowujesz wygląd legendy, skonsultuj się z umiejętnością na temat LegendCategoryLayout lub LegendContinuousLayout — zawiera ona szczegóły algorytmów rozmieszczenia elementów legendy.

  5. Gdy debugujesz problemy z legendą, podaj umiejętności informacje o błędzie i konfiguracji — może ona wskazać, czy problem leży w fazie wnioskowania komponentu, przetwarzaniu danych, czy obsłudze interakcji.

  6. Wykorzystaj wiedzę umiejętności o opcji render do wyboru między standardowym renderowaniem GUI a niestandardowym HTML, w zależności od potrzeb Twojej wizualizacji.

Related skills