
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@material-vega/core
Advanced tools
@material-vega/coreMaterial Design themes for Vega Lite and Vega.
Helps create Vega charts that look like Material Design's data visualizations.
Using npm:
npm install vega vega-lite vega-embed @material-vega/core
Using yarn:
yarn add vega vega-lite vega-embed @material-vega/core
import vegaEmbed from 'vega-embed';
import { createTheme } from '@material-vega/core';
vegaEmbed(container, spec, {
renderer: 'svg',
config: createTheme(
{
// options
},
'verticalBarChart'
)
});
import React from 'react';
import ReactDOM from 'react-dom';
import { VegaLite } from 'react-vega';
import { createTheme } from '@material-vega/core';
const config = createTheme(
{
// options
},
'verticalBarChart'
);
ReactDOM.render(
<VegaLite spec={spec} renderer="svg" config={config} />,
document.getElementById('container')
);
Projects using Material UI should use the @material-vega/material-ui package which integrates React-Vega and @material-vega/core with a wrapper that integrates with Material UI's theme.
createTheme(options, themeType);
Material Vega's settings can be customized, most of these are just Material Design constants which allow for overriding by another Material Design library.
font (default='"Roboto", "Helvetica", "Arial", sans-serif'): Font family to use for textlabelPadding (default=8): Spacing between labels and the chartbarCornerRadius (default=2): Corner radius to use for barstextColor (default='rgba(0, 0, 0, 0.87)'): Primary text colorsecondaryTextColor (default='rgba(0, 0, 0, 0.54)'): Secondary text colordividerColor (default='rgba(0, 0, 0, 0.12)'): Divider colorcolor (default=undefined): Default color for single marksbackground (default='transparent'): Background color for chartsthickDomainLineWidth (default=2): Bottom domain line thicknessMaterial Vega has a limited set of themes targeted for specific types of visualizations. A themeType matching the type of Vega visualization you are rendering must be specified.
verticalBarChart: Standard Vertical Bar ChartsfocusedVerticalBarChart: Vertical Bar Charts without axis labels and lineshorizontalBarChart: Horizontal Bar ChartslineChart: Line ChartsareaChart: Area ChartsareaLineChart: Area Charts with a line and translucent areapieChart: Pie Charts (experimental)donutChart: Donut Charts (experimental)scatterplotChart: Scaterplot / Point ChartsFAQs
Material Design stylized themes for Vega Lite visualizations
The npm package @material-vega/core receives a total of 110 weekly downloads. As such, @material-vega/core popularity was classified as not popular.
We found that @material-vega/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.