Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
echarts-simple-transform
Advanced tools
This is a non-official library.
There are some simple data transformers for Apache ECharts 5 in this library. Some of them might be migrated as ECharts built-in transforms in future.
echarts.registerTransform(ecSimpleTransform.aggregate);
const option = {
dataset: [{
source: [
['aa', 'bb', 'cc', 'tag'],
[12, 0.33, 5200, 'AA'],
[21, 0.65, 7100, 'AA'],
[51, 0.15, 1100, 'BB'],
[71, 0.75, 9100, 'BB'],
...
]
}, {
transform: {
type: 'ecSimpleTransform:aggregate',
config: {
resultDimensions: [
// by default, use the same name with `from`.
{ from: 'aa', method: 'sum' },
{ from: 'bb', method: 'count' },
{ from: 'cc' }, // method by default: use the first value.
{ from: 'dd', method: 'Q1' },
{ from: 'tag' }
],
groupBy: 'tag'
}
}
// Then the result data will be:
// [
// ['aa', 'bb', 'cc', 'tag'],
// [12, 0.33, 5200, 'AA'],
// [21, 0.65, 8100, 'BB'],
// ...
// ]
}],
// ...
};
const myChart = echarts.init(dom);
myChart.setOption(option);
Current supported method
s (case insensitive):
Also see this example.
echarts.registerTransform(ecSimpleTransform.aggregate);
const option = {
dataset: [{
source: [
['aa', 'bb', 'cc', 'tag'],
[12, 0.33, 5200, 'AA'],
[21, 0.65, 8100, 'AA'],
...
]
}, {
transform: {
type: 'ecSimpleTransform:id',
config: {
dimensionIndex: 4,
dimensionName: 'ID'
}
}
// Then the result data will be:
// [
// ['aa', 'bb', 'cc', 'tag', 'ID'],
// [12, 0.33, 5200, 'AA', 0],
// [21, 0.65, 8100, 'BB', 1],
// ...
// ]
}],
// ...
};
const myChart = echarts.init(dom);
myChart.setOption(option);
FAQs
Some simple data transforms for Apache ECharts 5
The npm package echarts-simple-transform receives a total of 654 weekly downloads. As such, echarts-simple-transform popularity was classified as not popular.
We found that echarts-simple-transform demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.