Skip to content

Commit 2262259

Browse files
committed
feat: add new chart
- RadialBarChart - BidirectionalBarChart
1 parent 5691061 commit 2262259

File tree

6 files changed

+22871
-3159
lines changed

6 files changed

+22871
-3159
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { mount } from '@vue/test-utils'
2+
import BidirectionalBarChart from '../../src/plots/bidirectional-bar'
3+
4+
const config = {
5+
data: [
6+
{
7+
a: 'a',
8+
b: 1,
9+
c: 2,
10+
},
11+
],
12+
xField: 'a',
13+
yField: ['b', 'c'] as [string, string],
14+
}
15+
16+
describe('BidirectionalBarChart', () => {
17+
test('should render without crashed', () => {
18+
mount(() => <BidirectionalBarChart {...config} />)
19+
})
20+
})

__tests__/plots/radial-bar.spec.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { mount } from '@vue/test-utils'
2+
import RadialBarChart from '../../src/plots/radial-bar'
3+
4+
const config = {
5+
data: [],
6+
xField: 'a',
7+
yField: 'b',
8+
}
9+
10+
describe('RadialBarChart', () => {
11+
test('should render without crashed', () => {
12+
mount(() => <RadialBarChart {...config} />)
13+
})
14+
})

0 commit comments

Comments
 (0)