Features · mark

Opacity / fill opacity

native

Transparency of marks and area fills

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.opacity, ChartKitChartSpecV1.mark.fillOpacity.

Source: chartkit:packages/core/src/generated/schema.ts:871, chartkit:packages/core/src/generated/schema.ts:823

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": "units"
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "mark": {
    "opacity": 0.7
  }
}

Other libraries

Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: mark.opacity.md.

LibraryStatusOptionVerificationSource
Chart.jspartialgrep: rgbavia rgba coloursgrep · weakchart.js/dist/types/index.d.ts:2780
RechartsnativeArea.fillOpacitytypes · strong@types/react/index.d.ts:3799
Apache EChartsnativeseries.itemStyle.opacity, series.areaStyle.opacitytypes · strongecharts/types/dist/shared.d.ts:7769
HighchartsnativeplotOptions.series.opacity, plotOptions.area.fillOpacitytypes · stronghighcharts/options/series.d.ts:1107
Plotly.jsnativetrace.opacitytypes · strongplot-schema.json#traces.{bar,barpolar,box,candlestick,carpet,cone,…}.attributes.opacity
NivonativeLine.areaOpacitytypes · strong@nivo/line/dist/types/types.d.ts:147
VictorynativeVictoryArea.styletypes · strongvictory-area/lib/victory-area.d.ts:8
visxnativeAreaClosed.fillOpacitytypes · strong@types/react/index.d.ts:3799
ApexChartsnativefill.opacitytypes · strongapexcharts/types/apexcharts.d.ts:4561
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: fillOpacitygrep · weak@observablehq/plot/src/channel.d.ts:32
Vega-Litenativegrep: opacitygrep · weak408: "fillOpacity"
AG Chartsnativeseries.fillOpacitytypes · strongag-charts-types/dist/types/src/series/cartesian/commonOptions.d.ts:38
amCharts 5nativegrep: fillOpacitygrep · weak@amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:100
Google ChartsnativeAreaChartOptions.areaOpacitytypes · strong@types/google.visualization/index.d.ts:921
uPlotpartialgrep: fillrgbagrep · weak303: export type Fill = CSSStyleDeclaration['background'] | ((self
TradingView Lightweight Chartspartialgrep: colorrgbagrep · weak24: * Represents a type of color.
MUI X Chartspartialgrep: opacitygrep · weak@mui/x-charts/ChartsYAxis/useAxisTicksProps.d.ts:3941
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: fillOpacitygrep · weak@antv/g2/lib/runtime/types/theme.d.ts:11