Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/charts/src/components/BarChart/BarChart.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { complexDataSet } from '../../resources/DemoProps.js';
import { BarChart } from './index.js';
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
testStackAggregateTotals,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { BarChart } from './index.js';
} from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/BarChart/BarChart.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { BulletChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { complexDataSet } from '../../resources/DemoProps.js';
import { ColumnChart } from './index.js';
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
testStackAggregateTotals,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { ColumnChart } from './index.js';
} from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { ColumnChartWithTrend } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as ComponentStories from './ColumnChartWithTrend.stories';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { complexDataSet } from '../../resources/DemoProps.js';
import { ComposedChart } from './index.js';
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
testStackAggregateTotals,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { ComposedChart } from './index.js';
} from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
import { complexDataSet, simpleDataSet } from '../../resources/DemoProps.js';
import { DonutChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '@/cypress/support/utils';

const dimension = {
accessor: 'name',
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/DonutChart/DonutChart.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import * as ComponentStories from './DonutChart.stories';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
6 changes: 1 addition & 5 deletions packages/charts/src/components/LineChart/LineChart.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
cypressPassThroughTestsFactory,
testChartLegendConfig,
testChartZoomingTool,
} from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { LineChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/LineChart/LineChart.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import * as ComponentStories from './LineChart.stories';
import LegendStory from '../../resources/LegendConfig.mdx';
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/PieChart/PieChart.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Text as RechartsText } from 'recharts';
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
import { complexDataSet, simpleDataSet } from '../../resources/DemoProps.js';
import { PieChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '@/cypress/support/utils';

const dimension = {
accessor: 'name',
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/PieChart/PieChart.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import * as ComponentStories from './PieChart.stories';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
import { complexDataSet } from '../../resources/DemoProps.js';
import { RadarChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '@/cypress/support/utils';

const dimensions = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/components/RadarChart/RadarChart.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import * as ComponentStories from './RadarChart.stories';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cypressPassThroughTestsFactory } from '../../../../../cypress/support/utils';
import { RadialChart } from './index.js';
import { cypressPassThroughTestsFactory } from '@/cypress/support/utils';

describe('RadialChart', () => {
it('Basic', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as ComponentStories from './RadialChart.stories';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
import { complexDataSet, scatterComplexDataSet } from '../../resources/DemoProps.js';
import { ScatterChart } from './index.js';
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '@/cypress/support/utils';

const measures = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import TooltipStory from '../../resources/TooltipConfig.mdx';
import * as ComponentStories from './ScatterChart.stories';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ControlsWithNote, DocsHeader, Footer } from '../../../../../.storybook/components';
import { Canvas, Meta, Markdown, ArgTypes } from '@storybook/addon-docs/blocks';
import SubcomponentsSection from '../../../../../.storybook/docs/SubcomponentsSection.md?raw';
import { ControlsWithNote, DocsHeader, Footer } from '@sb/components';
import { Canvas, Meta, ArgTypes } from '@storybook/addon-docs/blocks';
import * as ComponentStories from './TimeLineChart.stories';
import { TimelineChartAnnotation } from './TimelineChartAnnotation';

Expand Down Expand Up @@ -133,8 +132,6 @@ A lot more things can be customized in the `TimelineChart`. These include:

<Canvas of={ComponentStories.LoadingPlaceholder} />

<Markdown>{SubcomponentsSection}</Markdown>

## TimelineChartAnnotation

The `TimelineChartAnnotation` is designed to be used for creating custom annotations, markers
Expand Down
Loading