Skip to content

Commit

Permalink
[Rename] 일부 파일명 수정
Browse files Browse the repository at this point in the history
- 일부 파일명 더 직관적으로 수정 (ex. StockInfoOverview -> StockOverview)

Issues #11
  • Loading branch information
novice1993 committed Sep 1, 2023
1 parent 33b9962 commit 52c66e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
23 changes: 12 additions & 11 deletions client/src/components/CentralChartSection/StockChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ const StockChart = () => {
export default StockChart;

const options = {
title: {
text: "Stock Chart with Separate Y Axes on the Right Side",
},
// title: {
// text: "Stock Chart with Separate Y Axes on the Right Side",
// },
xAxis: {
type: "category",
data: [
new Date("2023-08-31 14:00").toLocaleDateString(),
"2023-08-31 14:00",
"Day 1",
"Day 2",
"Day 3",
Expand Down Expand Up @@ -51,7 +53,7 @@ const options = {
yAxis: [
{
type: "value",
name: "Price", // 주가 Y 축 라벨
// name: "Price", // 주가 Y 축 라벨
position: "right", // 오른쪽에 위치
},
],
Expand All @@ -68,10 +70,10 @@ const options = {
},
series: [
{
name: "Price",
name: "주가",
type: "candlestick", // 캔들스틱 시리즈
data: [
[100, 120, 80, 90],
[100, 120, 80, 90], // 시가, 종가, 저가, 주가
[110, 130, 100, 120],
[90, 110, 70, 100],
[95, 105, 85, 110],
Expand All @@ -84,12 +86,12 @@ const options = {
[150, 170, 140, 180],
[160, 180, 150, 190],
[170, 190, 160, 200],
[180, 200, 170, 210],
[110, 120, 100, 130],
[130, 150, 120, 160],
[170, 200, 170, 210],
[170, 140, 130, 130],
[150, 160, 120, 160],
[140, 160, 130, 170],
[150, 170, 140, 180],
[105, 125, 95, 120],
[140, 125, 95, 120],
[110, 120, 100, 130],
[120, 140, 110, 150],
[130, 150, 120, 160],
Expand Down Expand Up @@ -117,5 +119,4 @@ const Container = styled.div`
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const volumeAdditionalInfo: string = "거래량";
const transactionValue: string = "419억 1,468만";
const valueAdditionalInfo: string = "거래대금";

const StockInfoOverview = () => {
const StockOverview = () => {
return (
<Container>
<CorpLogo src={dummyImg} />
Expand All @@ -36,7 +36,7 @@ const StockInfoOverview = () => {
);
};

export default StockInfoOverview;
export default StockOverview;

const Container = styled.div`
flex: 7 0 0;
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/CentralSectionMenu/FirstLineMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { styled } from "styled-components";

import ExpandScreenBtn from "./FLineExpandScreenBtn";
import StockInfoOverview from "./FLineStockInfoOverview";
import StockOverview from "./FLineStockOverview";
import BookmarkBtn from "./FLineBookmarkBtn";
import TradeBtn from "./FLineTradeBtn";

const FirstLineMenu = () => {
return (
<Container>
<ExpandScreenBtn direction="left" />
<StockInfoOverview />
<StockOverview />
<BookmarkBtn />
<TradeBtn type="buying" />
<TradeBtn type="selling" />
Expand Down

0 comments on commit 52c66e9

Please sign in to comment.