Skip to content

Commit 68b98a8

Browse files
committed
renamed files and functions
1 parent d5fe065 commit 68b98a8

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

packages/react-charts/src/victory/components/ChartArea/examples/ChartArea.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ The examples below are based on the [Victory](https://formidable.com/open-source
2323
## Examples
2424
### Basic with right aligned legend
2525

26-
```ts file = "ChartAreaBasic.tsx"
26+
```ts file = "ChartAreaRightAlignedLegend.tsx"
2727

2828
```
2929

3030
### Teal with bottom aligned legend and axis label
3131

3232
This demonstrates how to combine cursor and voronoi containers to display tooltips along with a cursor.
3333

34-
```ts file = "ChartAreaTeal.tsx"
34+
```ts file = "ChartAreaBottomLegend.tsx"
3535

3636
```
3737

3838
### Multi-color (unordered) bottom-left aligned legend and responsive container
39-
```ts file = "ChartAreaMultiColor.tsx"
39+
```ts file = "ChartAreaMultiColorResponsive.tsx"
4040

4141
```
4242

packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaTeal.tsx renamed to packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaBottomLegend.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ import {
77
ChartLegendTooltip,
88
createContainer
99
} from '@patternfly/react-charts/victory';
10-
// import '@patternfly/patternfly/patternfly-charts.css'; // Required for mix-blend-mode CSS property
1110

1211
interface PetData {
1312
x: string;
1413
y: number;
1514
}
1615

17-
export const BottomAlignedLegend: React.FunctionComponent = () => {
16+
export const ChartAreaBottomLegend: React.FunctionComponent = () => {
1817
// Note: Container order is important
1918
const CursorVoronoiContainer = createContainer('voronoi', 'cursor');
2019
const legendData = [

packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaMultiColor.tsx renamed to packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaMultiColorResponsive.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ import {
77
ChartVoronoiContainer
88
} from '@patternfly/react-charts/victory';
99
import { getResizeObserver } from '@patternfly/react-core';
10-
// import '@patternfly/patternfly/patternfly-charts.css'; // Required for mix-blend-mode CSS property
1110

1211
interface PetData {
1312
name: string;
1413
x: string;
1514
y: number;
1615
}
17-
export const MultiColorChart: React.FunctionComponent = () => {
16+
export const ChartAreaMultiColorResponsive: React.FunctionComponent = () => {
1817
const [width, setWidth] = React.useState(0);
1918
const containerRef = React.useRef<HTMLDivElement>(null);
2019

packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaBasic.tsx renamed to packages/react-charts/src/victory/components/ChartArea/examples/ChartAreaRightAlignedLegend.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Chart, ChartArea, ChartAxis, ChartGroup, ChartVoronoiContainer } from '@patternfly/react-charts/victory';
2-
// import '@patternfly/patternfly/patternfly-charts.css'; // Required for mix-blend-mode CSS property
32

43
interface PetData {
54
name: string;

0 commit comments

Comments
 (0)