-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rangeSelection feature on LineType, Column Chart #763
Conversation
- selection with line type series using zoom logic - prototyping with using options in state - convert to rangeSelection from zoom with Line Chart - add rangeSelectable on column chart - add stories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apps/chart/src/charts/columnChart.ts
Outdated
@@ -60,7 +61,8 @@ import { ColumnChartProps, SelectSeriesInfo } from '@t/charts'; | |||
* @param {number|string} [props.options.chart.width] - Chart width. 'auto' or if not write, the width of the parent container is followed. 'auto' or if not created, the width of the parent container is followed. | |||
* @param {number|string} [props.options.chart.height] - Chart height. 'auto' or if not write, the width of the parent container is followed. 'auto' or if not created, the height of the parent container is followed. | |||
* @param {Object} [props.options.series] | |||
* @param {boolean} [props.options.series.selectable=false] - Whether to make selectable series or not. | |||
* @param {boolean} [props.options.series.selectable=false] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
설명이 사라졌네요
@@ -30,6 +30,7 @@ import HoveredSeries from '@src/component/hoveredSeries'; | |||
import DataLabels from '@src/component/dataLabels'; | |||
import Tooltip from '@src/component/tooltip'; | |||
import Background from '@src/component/background'; | |||
import RangeSelection from '@src/component/rangeSelection'; | |||
import NoDataText from '@src/component/noDataText'; | |||
|
|||
import * as basicBrush from '@src/brushes/basic'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기는 rangeSelectable
설명이 없어도 되나요??
@@ -17,7 +17,7 @@ import Title from '@src/component/title'; | |||
import ExportMenu from '@src/component/exportMenu'; | |||
import SelectedSeries from '@src/component/selectedSeries'; | |||
import HoveredSeries from '@src/component/hoveredSeries'; | |||
import Zoom from '@src/component/zoom'; | |||
import RangeSelection from '@src/component/rangeSelection'; | |||
import Background from '@src/component/background'; | |||
import NoDataText from '@src/component/noDataText'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 rangeSelectable
설명이 없네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 Zoom 기능 지원이 제대로 안되는 차트인데 들어가 있었네요. 이번 PR에선 빼고 zoom 처리를 다시 확인해봐야겠어요.
(추가)@ts-ignore
걸고 zoomable
사용하는 사람들이 있을 수 있어서 우선 이 상태로 둘게요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
차트 리뷰는 거의 처음 하네요. 제가 볼 수 있는 한에서는 LGTM입니다.
@dotaitch 우선 기존 차트의 구조나 동작 자체가 차트를 구성하는 각 컴포넌트에 만약 이 영역을 벗어날 경우 다른 컴포넌트의 responder과 동작이 겹쳐 의도치 않은 문제가 발생할 수도 있어요. 지금 생각나는대로면.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료합니다! 차트는 처음은데 꽤 어렵네요.. ㅎㅎㅎ
@dotaitch
|
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
rangeSelection
custom event interfaceThank you for your contribution to TOAST UI product. 🎉 😘 ✨