MetricsTableDiagram

Import

svelte
import { MetricsTableDiagram } from 'markgraphy';

Basic usage

svelte
<MetricsTableDiagram
  title="example"
/>
+- - - - - - - - [ EXAMPLE ] - - - - - - - -+
|                                           |
|  Tool calls             Time              |
|  - - - - - - - - - - - - - - - - - - - -  |
|  AST parse           120     16m          |
|  MDsveX compile      164     16m          |
|  Rune optimization   112     18m          |
|  - - - - - - - - - - - - - - - - - - - -  |
|  Total               396     ~50m         |
|                                           |
+- - - - - - - - - - - - - - - - - - - - - -+

Props

PropTypeDefaultDescription
title?stringCaption on the top edge, uppercased. Default “COST”.
rows?MetricRow[]
totalCalls?`numberstring`
totalTime?string
showTotal?booleanShow the total row. Default true.
class?string

Exported types

  • MetricRow
  • MetricsTableDiagramProps