Gathering detailed insights and metrics for @atana/g2plot
Gathering detailed insights and metrics for @atana/g2plot
npm install @atana/g2plot
Typescript
Module System
Node Version
NPM Version
TypeScript (98.85%)
JavaScript (0.55%)
FreeMarker (0.32%)
Shell (0.28%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
2,157
Last Day
3
Last Week
7
Last Month
36
Last Year
428
MIT License
82 Stars
1,118 Commits
14 Forks
1 Branches
4 Contributors
Updated on Mar 10, 2025
Minified
Minified + Gzipped
Latest Version
1.0.3
Package Id
@atana/g2plot@1.0.3
Unpacked Size
135.25 kB
Size
16.54 kB
File Count
157
NPM Version
6.14.2
Node Version
12.13.0
Cumulative downloads
Total Downloads
Last Day
0%
3
Compared to previous day
Last Week
133.3%
7
Compared to previous week
Last Month
-23.4%
36
Compared to previous month
Last Year
-28.4%
428
Compared to previous year
1
1
26
G2Plot for React
npm install @opd/g2plot-react
1import React, { useCallback } from 'react' 2import { LineChart } from '@opd/g2plot-react' 3import { LineConfig } from '@antv/g2plot' 4 5const config: LineConfig = { 6 height: 400, 7 title: { 8 visible: true, 9 text: '配置折线数据点样式', 10 }, 11 description: { 12 visible: true, 13 text: '自定义配置趋势线上数据点的样式', 14 }, 15 padding: 'auto', 16 forceFit: true, 17 xField: 'year', 18 yField: 'value', 19 label: { 20 visible: true, 21 type: 'point', 22 }, 23 point: { 24 visible: true, 25 size: 5, 26 }, 27 xAxis: { 28 tickCount: 10, 29 }, 30 data: [ 31 { year: '1991', value: 3 }, 32 { year: '1992', value: 4 }, 33 { year: '1993', value: 3.5 }, 34 { year: '1994', value: 5 }, 35 { year: '1995', value: 4.9 }, 36 { year: '1996', value: 6 }, 37 { year: '1997', value: 7 }, 38 { year: '1998', value: 9 }, 39 { year: '1999', value: 11 }, 40 ], 41} 42 43export default () => { 44 const handleChartMount = useCallback(chart => { 45 console.log(chart) 46 }, []) 47 return <LineChart {...config} onMount={handleChartMount} /> 48}
All config defined in G2Plot
document can be used as props
Extra Props:
onMount
: (chart: Plot) => void
. triggered after chart renderLineChart
StepLineChart
ScatterChart
ColumnChart
HistogramChart
StackedColumnChart
RangeColumnChart
PercentStackedColumnChart
GroupedColumnChart
WaterfallChart
BarChart
StackedBarChart
RangeBarChart
PercentStackedBarChart
GroupedBarChart
AreaChart
DensityChart
StackedAreaChart
PercentStackedAreaChart
BubbleChart
PieChart
RingChart
RadarChart
GaugeChart
HeatmapChart
ProgressChart
RingProgressChart
TinyLineChart
TinyAreaChart
TinyColumnChart
FunnelChart
LiquidChart
OverlappedComboChart
RoseChart
WordCloudChart
BulletChart
TreemapChart
CalendarChart
DonutChart
StackedRoseChart
GroupedRoseChart
npm install
npm run build
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More