From da14cdf84e34b3c4241473e2811e489df516989f Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 22 Apr 2020 03:47:42 +0900 Subject: [PATCH] Show a variety of Trendline components in storybook --- .../TrendLine/TrendLine.stories.tsx | 54 +++++++++++++++++-- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/TrendLine/TrendLine.stories.tsx b/packages/core/src/components/TrendLine/TrendLine.stories.tsx index 855b14207c..cdba2de56e 100644 --- a/packages/core/src/components/TrendLine/TrendLine.stories.tsx +++ b/packages/core/src/components/TrendLine/TrendLine.stories.tsx @@ -16,28 +16,74 @@ import React from 'react'; import TrendLine from '.'; +import SortableTable from 'components/SortableTable'; export default { title: 'TrendLine', component: TrendLine, }; -const width = 140; +const containerStyle = { width: 1000, padding: 20 }; + +const data = [ + { + stock: 'A', + day: , + week: , + month: , + year: , + }, + { + stock: 'B', + day: , + week: , + month: , + year: , + }, + { + stock: 'C', + day: , + week: , + month: , + year: , + }, + { + stock: 'D', + day: , + week: , + month: , + year: , + }, +]; + +const columns = [ + { id: 'stock', label: 'Stock name' }, + { id: 'day', label: 'Day' }, + { id: 'week', label: 'Week' }, + { id: 'month', label: 'Month' }, + { id: 'year', label: 'Year' }, +]; export const Default = () => ( -
+
+ +
+); + +export const TrendingMix = () => ( +
); export const TrendingUp = () => ( -
+
); export const TrendingDown = () => ( -
+
);