Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@operational/grid
Advanced tools
⚠️ This is highly experimental package and doesn't follow semantic versioning yet.
This component is used to show pivot table. Cells can be simple text (classical pivot table) or charts, to do the trick it uses cell
render prop, which will get frame as param (as well as other params).
yarn add @operational/grid
import * as React from "react";
import AutoSizer from "react-virtualized-auto-sizer";
import { DataFrame } from "@operational/frame";
import { PivotGrid } from "@operational/grid";
const frame = new DataFrame(/* ... */);
const pivotedFrame = frame.pivot({
/* ... */
});
const App = () => (
<AutoSizer style={{ minHeight: "500px", height: "100%" }}>
{({ width, height }) => <PivotGrid width={width} height={height} data={pivotedFrame} measures={/* ... */} />}
</AutoSizer>
);
PivotGrid expects width
and height
as params, because it uses virtual scrolling, so it needs to know dimensions. You can use react-virtualized-auto-sizer
to make <PivotGrid />
to use all available space.
PivotGrid expects PivotFrame
as data
param. It will provide information about which values to use as rows and columns and the actual data.
PivotGrid expects measures
as param. For text-based pivot table it is required, for pivot table of charts it is optional.
PivotGrid expects cell
render property, which will render content of cells. For text-based pivot table it is optional.
accessors.width
, accessors.height
- accessors (basically callbacks) responsible for detecting width and height of cells.
style.cell
- styles of cell, you can use it to provide padding for example
style.border
- style of border
measuresPlacement
- if we want to place measures in rows or columns. Defaults to column.
FAQs
Contiamo visualization library.
The npm package @operational/grid receives a total of 24 weekly downloads. As such, @operational/grid popularity was classified as not popular.
We found that @operational/grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.