Skip to content

Commit

Permalink
feat: support new chart
Browse files Browse the repository at this point in the history
- RadialBarChart
- BidirectionalBarChart
  • Loading branch information
kagawagao committed Nov 10, 2020
1 parent ef427f4 commit dd04021
Show file tree
Hide file tree
Showing 9 changed files with 35,711 additions and 4,277 deletions.
3 changes: 3 additions & 0 deletions __tests__/plots/__snapshots__/bidirectional-bar.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BidirectionalBarChart should render without crashed 1`] = `<div />`;
3 changes: 3 additions & 0 deletions __tests__/plots/__snapshots__/radial-bar.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`RadialBarChart should render without crashed 1`] = `<div />`;
13 changes: 13 additions & 0 deletions __tests__/plots/bidirectional-bar.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react'
import { create } from 'react-test-renderer'
import BidirectionalBarChart from '../../src/plots/bidirectional-bar'

describe('BidirectionalBarChart', () => {
test('should render without crashed', () => {
const renderer = create(
<BidirectionalBarChart xField="a" yField={['b', 'c']} data={[]} />
)

expect(renderer.toJSON()).toMatchSnapshot()
})
})
11 changes: 11 additions & 0 deletions __tests__/plots/radial-bar.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import { create } from 'react-test-renderer'
import RadialBarChart from '../../src/plots/radial-bar'

describe('RadialBarChart', () => {
test('should render without crashed', () => {
const renderer = create(<RadialBarChart data={[]} />)

expect(renderer.toJSON()).toMatchSnapshot()
})
})
Loading

0 comments on commit dd04021

Please sign in to comment.