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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | partial | grep: rgbavia rgba colours | grep · weak | chart.js/dist/types/index.d.ts:2780 |
| Recharts | native | Area.fillOpacity | types · strong | @types/react/index.d.ts:3799 |
| Apache ECharts | native | series.itemStyle.opacity, series.areaStyle.opacity | types · strong | echarts/types/dist/shared.d.ts:7769 |
| Highcharts | native | plotOptions.series.opacity, plotOptions.area.fillOpacity | types · strong | highcharts/options/series.d.ts:1107 |
| Plotly.js | native | trace.opacity | types · strong | plot-schema.json#traces.{bar,barpolar,box,candlestick,carpet,cone,…}.attributes.opacity |
| Nivo | native | Line.areaOpacity | types · strong | @nivo/line/dist/types/types.d.ts:147 |
| Victory | native | VictoryArea.style | types · strong | victory-area/lib/victory-area.d.ts:8 |
| visx | native | AreaClosed.fillOpacity | types · strong | @types/react/index.d.ts:3799 |
| ApexCharts | native | fill.opacity | types · strong | apexcharts/types/apexcharts.d.ts:4561 |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | native | grep: fillOpacity | grep · weak | @observablehq/plot/src/channel.d.ts:32 |
| Vega-Lite | native | grep: opacity | grep · weak | 408: "fillOpacity" |
| AG Charts | native | series.fillOpacity | types · strong | ag-charts-types/dist/types/src/series/cartesian/commonOptions.d.ts:38 |
| amCharts 5 | native | grep: fillOpacity | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:100 |
| Google Charts | native | AreaChartOptions.areaOpacity | types · strong | @types/google.visualization/index.d.ts:921 |
| uPlot | partial | grep: fillrgba | grep · weak | 303: export type Fill = CSSStyleDeclaration['background'] | ((self |
| TradingView Lightweight Charts | partial | grep: colorrgba | grep · weak | 24: * Represents a type of color. |
| MUI X Charts | partial | grep: opacity | grep · weak | @mui/x-charts/ChartsYAxis/useAxisTicksProps.d.ts:3941 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: fillOpacity | grep · weak | @antv/g2/lib/runtime/types/theme.d.ts:11 |