
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@devgateway/dvz-wp-commons
Advanced tools
Common Utilities for Data Viz Wordpress that can be also used in other projects
Common utilities for Data Visualization in WordPress that can also be used in other projects.
npm install @devgateway/dvz-wp-commons
# or
yarn add @devgateway/dvz-wp-commons
# or
pnpm add @devgateway/dvz-wp-commons
This package provides a collection of reusable components, utilities, and type definitions for data-viz WordPress. It facilitates consistent handling of chart configurations, data formatting, API connections, and more.
This package is used internally by DevGateway projects and is designed to be compatible with the project customizer, allowing for easy integration and extension in custom implementations.
getTranslatedOptions
getTranslation
isSupersetAPI
extractAxisValues
getSelectedLabelsForApp
transformDataToAppObject
updateMeasureLabels
getSelectedItemsForApp
getStoredOrSetItem
panelFocus
togglePanel
This package is designed to be integrated with the project customizer, allowing for:
When used with the project customizer, components from this package can be easily configured and extended to meet specific project requirements.
import { ChartColors, ChartLegends, Format } from '@devgateway/dvz-wp-commons';
const MyChartComponent = ({ attributes, setAttributes }) => {
return (
<div>
<ChartColors
attributes={attributes}
setAttributes={setAttributes}
/>
<ChartLegends
attributes={attributes}
setAttributes={setAttributes}
/>
<Format
attributes={attributes}
setAttributes={setAttributes}
/>
</div>
);
};
import { APIConfig } from '@devgateway/dvz-wp-commons';
const MyAPIComponent = ({ attributes, setAttributes }) => {
return (
<APIConfig
attributes={attributes}
setAttributes={setAttributes}
/>
);
};
MIT
FAQs
Common Utilities for Data Viz Wordpress that can be also used in other projects
We found that @devgateway/dvz-wp-commons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.