agentsclimarketplace

Axis

Skill reaviz/skills/reaviz/common/axis

AI Skills for Reaviz ProjectsFrom the repository description

Install
npx -y skills add reaviz/skills --skill axis

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

4.5 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Axis

Linear axis components for cartesian charts. Configurable tick formatting, label rotation, positioning, and axis line styling.

Import

import {
  LinearXAxis,
  LinearXAxisTickSeries,
  LinearXAxisTickLabel,
  LinearXAxisTickLine,
  LinearYAxis,
  LinearYAxisTickSeries,
  LinearYAxisTickLabel,
  LinearYAxisTickLine,
  LinearAxisLine
} from 'reaviz';

LinearXAxis / LinearYAxis Props

PropTypeDefault (X)Default (Y)Description
type'value' | 'time' | 'category' | 'duration''value''value'Scale type
position'start' | 'end' | 'center''end''start'Axis placement
orientation'horizontal' | 'vertical''horizontal''vertical'Axis direction
scaledbooleanfalsefalseScale to data extent
roundDomainsbooleanfalsefalseRound domain values
domainChartDataTypes[]Custom domain
tickSeriesReactElement<LinearXAxisTickSeries /><LinearYAxisTickSeries />Tick series component
axisLineReactElement | null<LinearAxisLine /><LinearAxisLine />Axis line (null to hide)
visibility'visible' | 'hidden'Axis visibility
scaleanyCustom D3 scale

Tick Series Props

PropTypeDefaultDescription
tickSizenumberX: 75, Y: 30Spacing between ticks
intervalnumber | TimeIntervalCustom tick interval
ellipsisLengthnumber18Max label characters before ellipsis
labelReactElement | null<LinearAxisTickLabel />Tick label (null to hide)
lineReactElement | null<LinearAxisTickLine />Tick line (null to hide)

Tick Label Props

PropTypeDefaultDescription
format(value) => anyCustom label formatter
formatTooltip(value) => anyTooltip format for truncated labels
rotationboolean | numberX: true, Y: falseAuto-rotate or fixed angle
paddingnumber | { fromAxis, alongAxis }5Label padding
fillstring'#8F979F'Text color
fontSizenumber11Font size
fontFamilystring'sans-serif'Font family
align'start' | 'end' | 'center' | 'inside' | 'outside''center'Label alignment
position'start' | 'end' | 'center'X: 'end', Y: 'start'Label position
textAnchor'start' | 'end' | 'middle'SVG text anchor
classNamestringCSS class
onClick(event, data) => voidLabel click handler

Tick Line Props

PropTypeDefaultDescription
sizenumber5Tick line length
strokeColorstring'#8F979F'Line color
strokeWidthnumber1Line thickness
position'start' | 'end' | 'center'X: 'end', Y: 'start'Line position

Axis Line Props

PropTypeDefaultDescription
strokeColorstring'#8F979F'Line color
strokeWidthnumber1Line thickness
strokeGradientReactElement<GradientProps> | nullGradient for axis line

Custom Tick Formatting

import { LinearYAxis, LinearYAxisTickSeries, LinearYAxisTickLabel } from 'reaviz';

<AreaChart
  data={data}
  yAxis={
    <LinearYAxis
      type="value"
      tickSeries={
        <LinearYAxisTickSeries
          label={
            <LinearYAxisTickLabel
              format={(v) => `$${v.toLocaleString()}`}
            />
          }
        />
      }
    />
  }
/>

Hide Axis Labels (Keep Line)

<LinearXAxis
  type="time"
  tickSeries={<LinearXAxisTickSeries label={null} />}
/>

Hide Tick Lines (Keep Labels)

<LinearYAxis
  type="value"
  tickSeries={<LinearYAxisTickSeries line={null} />}
/>

Hide Entire Axis

<AreaChart
  data={data}
  xAxis={<LinearXAxis visibility="hidden" />}
/>

Remove Axis Line

<LinearYAxis type="value" axisLine={null} />

Fixed Label Rotation

<LinearXAxisTickLabel rotation={45} />

Category Axis

<LinearXAxis type="category" />

Time Axis with Custom Interval

import { timeMonth } from 'd3-time';

<LinearXAxis
  type="time"
  tickSeries={<LinearXAxisTickSeries interval={timeMonth.every(3)} />}
/>

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.