
Security News
The AI Industry Is Betting on Open Weights
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.
@fc-plot/ts-graph
Advanced tools
a time series graph using D3.js.
npm i @fc-plot/ts-graph -S
import { random } from 'lodash';
import TsGraph from '@fc-plot/ts-graph';
import '@fc-plot/ts-graph/dist/index.css';
function generateSeries(seriesCount = 1000) {
const series = [];
for (let n = 1; n <= seriesCount; n++) {
const seriesData = [];
const seriesDataCount = random(99, 100);
for (let m = 1; m <= seriesDataCount; m++) {
seriesData.push({
timestamp: 1502266250000 + (m * 10000),
value: random(0, 1000, 3),
marker: {
enabled: true,
radius: 1,
}
});
}
series.push({
name: `serie-${n}`,
data: seriesData,
});
}
return series;
}
new TsGraph({
timestamp: 'x',
xkey: 'timestamp',
ykey: 'value',
chart: {
renderTo: document.getElementById(`content`),
},
series: generateSeries(),
})
const defaultOptions = {
ratio: window.devicePixelRatio || 1,
xkey: 0, // time keyName
ykey: 1, // value keyName
timestamp: 'x', // timestamp type x: Unix Millisecond, X: Unix
chart: {
id: uniqueId('d3-graph-'),
colors: ['#3399CC', '#CC9933', '#9966CC', '#66CC66', '#CC3333', '#99CCCC', '#CCCC66', '#CC99CC', '#99CC99', '#CC6666', '#336699', '#996633', '#993399', '#339966', '#993333'],
renderTo: userOptions.chart.renderTo,
width: userOptions.chart.renderTo.offsetWidth,
height: userOptions.chart.renderTo.offsetHeight || 350,
marginTop: 10,
marginRight: 10,
marginBottom: 10,
marginLeft: 10,
},
xAxis: {
lineColor: '#ccc',
lineWidth: 1,
tickLength: 5,
tickpadding: 5,
tickColor: '#ccc',
labels: {
color: '#999',
fontSize: 11,
},
},
yAxis: {
lineColor: '#ccc',
lineWidth: 1,
tickLength: 5,
tickpadding: 5,
tickColor: '#ccc',
gridLineColor: '#efefef',
labels: {
color: '#999',
fontSize: 11,
style: {
fontSize: 11,
color: '#999',
},
},
plotLines: [{
value: 100,
color: 'red',
labelOffsetY: 4,
}],
},
tooltip: {
shared: true,
formatter: undefined, // 自定义 tooltip 内容 undefined | (points) => StringOfHTML
},
series: [] // { name: string, data: any[] }[],
fillNull: undefined,
onZoom: () => {},
}
FAQs
a time series graph using D3.js
The npm package @fc-plot/ts-graph receives a total of 325 weekly downloads. As such, @fc-plot/ts-graph popularity was classified as not popular.
We found that @fc-plot/ts-graph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.