Skip to content

Commit

Permalink
이슈 8703 처리 (#452)
Browse files Browse the repository at this point in the history
Co-authored-by: usbsync <[email protected]>
  • Loading branch information
kimorkim and usbsync authored Sep 4, 2024
1 parent d970167 commit ce30607
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
24 changes: 15 additions & 9 deletions src/components/widget/BillBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ const BillBoard = (props) => {
...data,
};
if (data.type) {
newTableData.type = getBillBoardType(data.type)
newTableData.type = data.type;
// newTableData.type = getBillBoardType(data.type);
}
if (data.types) {
Object.keys(data.types).forEach((key) => {
newTableData.types[key] = getBillBoardType(data.types[key]);
newTableData.types[key] = data.types[key];
// newTableData.types[key] = getBillBoardType(data.types[key]);
});
}

Expand All @@ -81,9 +83,7 @@ const BillBoard = (props) => {
<div className={isIframe ? theme.center_chart : theme.center}>
<div className={theme.modal}>
<div className={theme.head}>
<div className={theme.text}>
{title}
</div>
<div className={theme.text}>{title}</div>
<div
className={theme.close}
id="chart_btn"
Expand All @@ -93,8 +93,14 @@ const BillBoard = (props) => {
/>
</div>
<div className={theme.body}>
<div className={cn(theme.content, theme.billboard)} style={{ minHeight: '300px' }}>
<div className={theme.description} dangerouslySetInnerHTML={ {__html: description} } />
<div
className={cn(theme.content, theme.billboard)}
style={{ minHeight: '300px' }}
>
<div
className={theme.description}
dangerouslySetInnerHTML={{ __html: description }}
/>
<div className={theme.graph_box} ref={chartRef} />
</div>
</div>
Expand Down Expand Up @@ -130,6 +136,6 @@ const BillBoard = (props) => {
</div>
</div>
);
}
};

export default pure(BillBoard);
export default pure(BillBoard);
2 changes: 1 addition & 1 deletion src/components/widget/Chart/Bar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
import bb, { bar } from 'billboard.js';
import bb from 'billboard.js';
import Theme from '@utils/Theme';
import '@assets/entry/scss/widget/insight.css';
import { GRAPH_COLOR } from '@constants/dataAnalytics';
Expand Down
4 changes: 2 additions & 2 deletions src/components/widget/Chart/ScatterGrid.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRef, useEffect } from 'react';
import { corr } from '@utils/dataAnalytics';
import bb, { scatter } from 'billboard.js';
import bb from 'billboard.js';
import '@assets/entry/scss/widget/insight.css';
import Theme from '@utils/Theme';
import _unzip from 'lodash/unzip';
Expand All @@ -17,7 +17,7 @@ const ScatterChart = ({ columns, id = 'scatter_matrix', size, zoomIn, opacity })
columns[1][0] += 'x';
}
bb.generate({
data: { columns, type: scatter(), xs: { [columns[0][0]]: columns[1][0] } },
data: { columns, type: 'scatter', xs: { [columns[0][0]]: columns[1][0] } },
bindto: chartRef.current,
axis: {
x: { tick: { text: { show: false }, count: 4, padding: 0 } },
Expand Down

0 comments on commit ce30607

Please sign in to comment.