Qual gráfico usar? Um guia para apps do DatabricksWhich chart to use? A guide for Databricks apps
Escolha o tipo de dado, responda duas ou três perguntas e veja os gráficos possíveis, cada um com ícone próprio, dados reais de São Paulo e o código em React + TypeScript com o AppKit. A ideia vem do From Data to Viz; a árvore, os textos, os ícones e as figuras aqui são originais.
Pick your data type, answer two or three questions and see the possible charts, each with its own icon, real São Paulo data and the code in React + TypeScript with AppKit. The idea comes from From Data to Viz; the tree, the texts, the icons and the figures here are original.
Como ler. No AppKit, o gráfico recebe um queryKey (o nome do arquivo em config/queries/) e busca o resultado sozinho; não há XAxis nem YAxis, só props como xKey e yKey. As figuras são desenhos em SVG com dados reais e só alguns tipos têm código do AppKit (os que ele suporta); os trechos de código não foram executados em um app real, então confirme as props com npx @databricks/appkit docs.
How to read it. In AppKit the chart takes a queryKey (the file name in config/queries/) and fetches the result by itself; there is no XAxis or YAxis, only props such as xKey and yKey. The figures are SVG drawings of real data and only some types have AppKit code (the ones it supports); the code snippets were not run in a real app, so confirm the props with npx @databricks/appkit docs.
Dados: casos do Sinan por município de São Paulo, o mesmo arquivo do mapa do portfólio. As tabelas e colunas nas consultas são exemplos: ajuste para o seu Unity Catalog.
Data: Sinan cases per São Paulo municipality, the same file behind the portfolio map. The tables and columns in the queries are examples: adapt them to your Unity Catalog.