
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@visactor/vchart-theme-converter
Advanced tools
VChart theme converter between popular visualization libraries
This plugin currently supports the mutual conversion between VChart themes and ECharts themes. Currently supported features include():
It is important to note that the theme conversion tool cannot completely cover the visual differences between the two chart libraries.
import { echartsToVChart, vchartToEcharts } from '@visactor/vchart-theme-converter';
import { VChart } from '@visactor/vchart';
// convert echarts theme to vchart theme
{
const echartsTheme = {...}
const vchartTheme = echartsToVChart(echartsTheme);
}
// convert vchart runtime theme to echarts theme
{
const vchartTheme = VChart.ThemeManager.getCurrentTheme()
const echartsTheme = vchartToEcharts(echartsTheme);
}
// convert custom vchart theme to echarts theme
{
/**
* When registering a custom VChart theme, it merges with the default theme to form a complete theme
* configuration;
* Therefore, it is recommended to register the custom theme first and obtain the complete theme configuration
* before converting a custom VChart theme.
*/
const vchartTheme = {...};
VChart.ThemeManager.registerTheme('myTheme', vchartTheme);
const echartsTheme = vchartToEcharts(VChart.ThemeManager.getTheme('myTheme'));
}
FAQs
VChart theme converter between popular visualization libraries
We found that @visactor/vchart-theme-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.