
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
taro-charts
Advanced tools
Echarts component for Taro, support WeChat mini-programs, H5 and React Native application.
yarn add taro-charts
import Taro from '@tarojs/taro';
import * as echarts from 'echarts/core';
import {
BarChart,
} from 'echarts/charts';
import {
TitleComponent,
TooltipComponent,
GridComponent
} from 'echarts/components';
import {Echarts, EchartsRenderer} from 'taro-charts'
import { useEffect, useRef, useState } from 'react';
// register extensions
echarts.use([
TitleComponent,
TooltipComponent,
GridComponent,
EchartsRenderer,
BarChart,
])
const E_HEIGHT = 250;
const E_WIDTH = 300;
export default function TaorEcharts({ option ={
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
},
yAxis: {
type: 'value',
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
},
],
} }) {
const ref = useRef<any>(null);
const [chart, setChart] = useState<echarts.ECharts>();
useEffect(()=>{
return () => {
// 小程序端执行卸载报错
if (process.env.TARO_ENV !== 'weapp') {
chart.current?.dispose()
}
}
},[chart])
return <Echarts
style={{flex: 1, height: 300, width: 300 }}
RNRenderType='svg' // RN端需要指定渲染引擎
canvasId='如果要渲染多个图表 需要指定不同的id'
onContextCreate={(canvas)=>{
const charts = echarts.init(canvas, 'light', {
renderer: 'svg',
width: E_WIDTH,
height: E_HEIGHT,
});
canvas.setChart?.(charts);
charts.setOption(option);
setChart(charts)
}}
/>;
}
FAQs
Echarts for taro
The npm package taro-charts receives a total of 9 weekly downloads. As such, taro-charts popularity was classified as not popular.
We found that taro-charts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.