agentsclimarketplace

Bar list

Skill reaviz/skills/reaviz/charts/bar-list

AI Skills for Reaviz Projects

Install
npx -y skills add reaviz/skills --skill bar-list

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.7 KB, as published. Nobody here has run it

BarList

Horizontal bar list for ranking data. Renders semantic HTML (not SVG) with animated bars, configurable label/value positions, sorting, and percentage mode.

Import

import { BarList, BarListSeries } from 'reaviz';

BarList Props

PropTypeDefaultDescription
dataChartShallowDataShape[][]Chart data
type'count' | 'percent''count'Value scaling — count scales to max value, percent scales to 100
sortDirection'asc' | 'desc' | 'none''desc'Sort bars by value
seriesReactElement<BarListSeriesProps><BarListSeries />Series component
idstringCSS ID
classNamestringCSS class
styleReact.CSSPropertiesInline styles

BarListSeries Props

PropTypeDefaultDescription
colorSchemeColorSchemeType'cybertron'Color scheme name or function
labelPositionBarListLabelPosition'top'Key label placement
valuePositionBarListLabelPosition'none'Value label placement
labelFormat(data, index) => anyCustom label formatter
valueFormat(data, index) => anyCustom value formatter
itemClassNamestringCSS class for each bar item
labelClassNamestringCSS class for key labels
valueClassNamestringCSS class for value labels
barClassNamestringCSS class for the inner bar
outerBarClassNamestringCSS class for the bar container
onItemClick(data: ChartShallowDataShape) => voidClick handler
onItemMouseEnter(data: ChartShallowDataShape) => voidMouse enter handler
onItemMouseLeave(data: ChartShallowDataShape) => voidMouse leave handler

BarListLabelPosition: 'none' | 'top' | 'start' | 'end' | 'bottom'

Basic Usage

const data = [
  { key: 'Phishing', data: 10 },
  { key: 'Malware', data: 8 },
  { key: 'DDoS', data: 5 },
  { key: 'Ransomware', data: 3 },
];

<BarList data={data} />

With Values Displayed

<BarList
  data={data}
  series={<BarListSeries valuePosition="end" />}
/>

Percentage Mode

<BarList
  data={data}
  type="percent"
  series={
    <BarListSeries
      valuePosition="end"
      valueFormat={(data) => `${data}%`}
    />
  }
/>

Sort Direction

// Ascending (smallest first)
<BarList data={data} sortDirection="asc" />

// Descending (largest first, default)
<BarList data={data} sortDirection="desc" />

// Original data order
<BarList data={data} sortDirection="none" />

Label Positions

// Label above bar (default)
<BarListSeries labelPosition="top" />

// Label at start of bar
<BarListSeries labelPosition="start" />

// Label at end of bar
<BarListSeries labelPosition="end" />

// Label below bar
<BarListSeries labelPosition="bottom" />

// No label
<BarListSeries labelPosition="none" />

Click Handling

<BarList
  data={data}
  series={
    <BarListSeries
      valuePosition="end"
      onItemClick={(item) => console.log(item)}
    />
  }
/>

Custom Styling

<BarList
  data={data}
  series={
    <BarListSeries
      barClassName="rounded-full"
      outerBarClassName="bg-gray-100 rounded-full"
      valueClassName="text-sm font-mono"
    />
  }
/>

Notes

  • Renders semantic HTML (role="list" / role="listitem"), not SVG
  • Bars animate with staggered entrance using Framer Motion
  • Data is normalized to a 0-100% width range using D3 linear scale
  • Each item carries metadata with original value and calculated percent

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.