Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
BarChart.tsx1.26 kB
import React from "react" import { VictoryAxis, VictoryBar, VictoryChart, VictoryGroup, VictoryTheme, } from "victory" export default function BarChart(props: { rows: any[]; headers: string[] }) { const { rows, headers } = props const x = headers[0] const ys = headers.slice(1) return ( <VictoryChart theme={VictoryTheme.clean}> <VictoryAxis style={{ tickLabels: { angle: 45, textAnchor: "start", padding: 5, }, }} /> <VictoryGroup offset={20} style={{ data: { width: 15 } }}> <VictoryAxis dependentAxis /> {ys.map((y) => ( <VictoryBar key={y} data={rows .filter((row) => row[y]) .map((row) => ({ x: row[x], y: row[y], }))} labels={({ datum }) => datum.y} /> ))} </VictoryGroup> </VictoryChart> ) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server