Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@statisticsfinland/pxvisualizer
Advanced tools
PxVisualizer is used to draw visualizations of PxGraf visualization API responses. The visualizations can be drawn using the provided react components or by using the core functions to draw the visualizations in any javascript enabled environment. The visualizations are drawn using HighCharts library.
The software is provided as is and Statistics Finland will not offer any support for setting up PxVisualizer or solving issues related to it.
IMPORTANT: PxVisualizer package uses HighCharts for rendering the visualizations. Please note that commercial use of HighCharts requires a commercial license. Non-commercial use may qualify for a free educational or personal license. Read more about licenses in the HighCharts shop.
Implementing a visualization requires importing either the Chart or drawChart component from the PxVisualizer package and passing required and optional props to it. The Chart component will then render the visualization based on the provided data.
import { Chart } from '@statisticsfinland/pxvisualizer';
<Chart locale={[string]} pxGraphData={[visualizationResponse]} />
import { drawChart } from '@statisticsfinland/pxvisualizer';
drawChart(container, pxGraphData, locale);>
IFunctionalMenuItem interface is used to define custom context menu items that execute a function when clicked. The interface extends IBaseMenuItem interface and contains the following property:
* Do not mix this structure! It will be easier to split to separate projects if needed if we maintain this kind of structure in the files. Possible to split core as a separate package and make specific libraries (e.g. React component library) depend on the core package.
npm i @statisticsfinland/pxvisualizer
The next version you want to publish as @latest, should be set with npm version major|minor|patch
.
Pipeline validates that version you have set is greater than latest already published.
// PR version 0.0.4 - we are here
// d version 0.0.3-d.2
// t version 0.0.3-t.2
// Latest version 0.0.3
// PR version 0.0.4
// d version 0.0.4-d.0 - now we are here
// t version 0.0.3-t.2
// Latest version 0.0.3
// PR version 0.0.4
// d version 0.0.4-d.0
// t version 0.0.4-t.0 - now we are here
// Latest version 0.0.3
// PR version 0.0.4
// d version 0.0.4-d.0
// t version 0.0.4-t.0
// Latest version 0.0.4 - now we are here
npm view @statisticsfinland/pxvisualizer --json
FAQs
Component library for visualizing PxGraf data
The npm package @statisticsfinland/pxvisualizer receives a total of 132 weekly downloads. As such, @statisticsfinland/pxvisualizer popularity was classified as not popular.
We found that @statisticsfinland/pxvisualizer 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.