Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Apr 27, 2020
1 parent 41ff903 commit 91440dd
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`BarRechart Renders with data 1`] = `
<div
style="width: 100%; height: 60vh; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 60vh; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`BarRechart Renders with data 1`] = `

exports[`BarRechart loading placeholder 1`] = `
<div
style="width: 30%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 30%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`ColumnRechart Renders with data 1`] = `
<div
style="width: 100%; height: 60vh; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 60vh; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`ColumnRechart Renders with data 1`] = `

exports[`ColumnRechart loading placeholder 1`] = `
<div
style="width: 30%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 30%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`ComposedChart Renders with data 1`] = `
<div
style="width: 100%; height: 60vh; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 60vh; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`ComposedChart Renders with data 1`] = `

exports[`ComposedChart loading placeholder 1`] = `
<div
style="width: 50%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 50%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`DonutChart Renders with data 1`] = `
<div
style="width: 50%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 50%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`DonutChart Renders with data 1`] = `

exports[`DonutChart loading placeholder 1`] = `
<div
style="width: 30%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 30%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`LineChart Renders with data 1`] = `
<div
style="width: 100%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`LineChart Renders with data 1`] = `

exports[`LineChart loading placeholder 1`] = `
<div
style="width: 30%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 30%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`PieChart Renders with data 1`] = `
<div
style="width: 50%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 50%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`PieChart Renders with data 1`] = `

exports[`PieChart loading placeholder 1`] = `
<div
style="width: 50%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 50%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`RadarChart Renders with data 1`] = `
<div
style="width: 100%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`RadarChart Renders with data 1`] = `

exports[`RadarChart loading placeholder 1`] = `
<div
style="width: 100%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 400px; position: relative;"
>
<svg
aria-labelledby="ARIA-LABELLED-BY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`RadialChart Renders with data 1`] = `
<div
style="width: 100%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand All @@ -16,7 +16,7 @@ exports[`RadialChart Renders with data 1`] = `

exports[`RadialChart loading placeholder 1`] = `
<div
style="width: 100%; height: 400px; position: relative;"
style="font-family: var(--sapFontFamily); width: 100%; height: 400px; position: relative;"
>
<div
class="recharts-responsive-container"
Expand Down
8 changes: 4 additions & 4 deletions packages/charts/src/internal/ChartLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React, { cloneElement, isValidElement, ReactNode, ReactElement, createEle
import _ from 'lodash';
import classNames from 'classnames';
import { Text } from 'recharts';
import { findAllByType } from 'recharts/es6/util/ReactUtils';
import { isNumOrStr, isNumber, isPercent, getPercentValue, uniqueId, mathSign } from 'recharts/es6/util/DataUtils';
import { polarToCartesian } from 'recharts/es6/util/PolarUtils';
import { PresentationAttributes, filterProps } from 'recharts/es6/util/types';
import { findAllByType } from 'recharts/lib/util/ReactUtils';
import { isNumOrStr, isNumber, isPercent, getPercentValue, uniqueId, mathSign } from 'recharts/lib/util/DataUtils';
import { polarToCartesian } from 'recharts/lib/util/PolarUtils';
import { PresentationAttributes, filterProps } from 'recharts/lib/util/types';

interface CartesianViewBox {
x?: number;
Expand Down

0 comments on commit 91440dd

Please sign in to comment.