
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@splunk/dashboard-core
Advanced tools
@splunk/dashboard-core is a core component in Dashboard Framework that manages the state between visualizations, inputs and their datasources. You must wrap this component with a DashboardContextProvider.
It renders a dashboard according to a JSON definition.
npm install react react-dom styled-components @splunk/react-ui @splunk/dashboard-core @splunk/dashboard-presets
--or--
yarn add react react-dom styled-components @splunk/react-ui @splunk/dashboard-core @splunk/dashboard-presets
import React from 'react';
import DashboardCore from '@splunk/dashboard-core';
import CloudViewOnlyPreset from '@splunk/dashboard-presets/CloudViewOnlyPreset';
import { DashboardContextProvider } from '@splunk/dashboard-context';
import GeoRegistry from '@splunk/dashboard-context/GeoRegistry';
import GeoJsonProvider from '@splunk/dashboard-context/GeoJsonProvider';
const definition = {
dataSources: {
search1: {
options: {
data: {
columns: [['168']],
fields: [
{
name: 'count',
},
],
},
meta: {},
},
type: 'ds.test',
},
},
visualizations: {
single1: {
type: 'viz.singlevalue',
options: {},
dataSources: {
primary: 'search1',
},
},
single2: {
type: 'viz.singlevalue',
options: {},
dataSources: {
primary: 'search1',
},
},
single3: {
type: 'viz.singlevalue',
options: {},
dataSources: {
primary: 'search1',
},
},
},
layout: {
type: 'absolute',
options: {
width: 1000,
height: 400,
},
structure: [
{
item: 'single1',
position: {
x: 0,
y: 100,
w: 200,
h: 200,
},
},
{
item: 'single2',
position: {
x: 400,
y: 100,
w: 200,
h: 200,
},
},
{
item: 'single3',
position: {
x: 800,
y: 100,
w: 200,
h: 200,
},
},
],
},
};
const geoRegistry = GeoRegistry.create();
geoRegistry.addDefaultProvider(new GeoJsonProvider());
export default () => (
<DashboardContextProvider geoRegistry={geoRegistry}>
<DashboardCore
width="100%"
height={450}
preset={CloudViewOnlyPreset}
definition={definition}
/>
</DashboardContextProvider>
);
FAQs
Unify Dashboard Framework
The npm package @splunk/dashboard-core receives a total of 526 weekly downloads. As such, @splunk/dashboard-core popularity was classified as not popular.
We found that @splunk/dashboard-core 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.