Comments (5)
안녕하세요 ~
TUI Chart에 관심을 가져 주셔서 감사합니다.
네, legend의 정렬 위치를 수정할 수 있는 옵션이 있습니다.
//...
var options = {
legend: {
align: 'top' // or 'left', 'bottom', 'right'(default)
}
};
tui.chart.barChart(container, data, options);
위와 같이 사용 하시면 됩니다.
자세한 사항은 Wiki의 tutorial문서 https://github.com/nhnent/tui.chart/wiki/features-legend#changing-legend-align를 참고 하시면 됩니다. :)
from tui.chart.
@paulsoh 네 확인 해보았는데요,
- 세로 정렬이 어긋난다는것이 legend 라벨이 차트 영역을 벗어나는 이슈인가요? 세로 정렬이 어떤것을 뜻하는지 말씀해주시면 다시 확인해보겠습니다.
custom-event-area는 series영역 크기와 맞추어서 줄어들고 커지므로 legned 영역이 그려지는 위치와는 상관이 없습니다. - 네, 현재는 legend영역이 차트 렌더링 영역을 넘어감에대한 처리가 없습니다.
내부에서 legned를 그리는 방식이 svg라서 아마 css는 동작하지 않을 것이구요, legend 표현 개선을 추후 개발 목록에 추가하겠습니다.
from tui.chart.
답변 감사합니다!
align을 정렬
로 생각하고 읽다가 무심코 지나친 것 같습니다.
@junghwan-park님 추가 질문 몇가지만 드릴게요...
- 아래와 같이 Legend를 옮기고 나서, entity의 갯수에 따라 Legend의 위치가 옮겨지는 것을 볼 수 있습니다. (테스트 해보니 entity의 갯수가 많을 때에만 이렇게 세로 정렬이 어긋나게 됩니다.
이 부분을 개선할 수 있는 방법이 있을까요?
이 부분 <div class="tui-chart-series-custom-event-area" />
의 높이가 유동적으로 변하는 것 같은데 Entity의 갯수에 따라서 다르게 계산되는 이유가 무엇인지 궁금합니다.
- Entity의 갯수가 많아지면 일렬로 길게 늘어지면서 모든 Entity에 대한 Legend가 hidden이 되게 됩니다. 생각 같아서는 Legend가 나오는 부분에 flex-wrap: wrap와 같은 방법으로 아래로 line break이 되게 하고 싶은데.. 이 부분에 대한 개선 방법이 혹시 있을까요? (확인해보니 Legend가 svg내에서 그려지고 있네요)
감사합니다.
from tui.chart.
@junghwan-park님 혹시 확인 가능하신지요?
from tui.chart.
답변 감사합니다!
from tui.chart.
Related Issues (20)
- Gauge with negative range does not work correctly HOT 13
- Setting opacity to series in RadialBarChart HOT 1
- how to yAxis format? HOT 1
- ColumnLine colorByCategories does not work if color is not specified if initial render has no category HOT 5
- When the chart is initially rendered, it is rendered strangely. HOT 4
- 타입 정의파일과 실제 컴포넌트 이름 불일치 문제 HOT 4
- peer react@"^17.0.0" from @toast-ui/[email protected] HOT 2
- when the chart is initially rendered, it is strangely HOT 2
- Chart menu option to select or deselect all legend items HOT 1
- Chart Rendering twice in strict mode HOT 1
- boxplot negative number compatibility
- Dark mode HOT 1
- nestedPieChart's setData() function is abnormal
- linechart setData & addData has abnormal operation. HOT 1
- Documents do not completely describe Responsive.Rule.Options
- Axis 'title' position alignment
- 브라우저 축소시 backgroundColor 이슈
- Hiding Tooltip for heat map is not working
- Column Stack Chart 의 툴팁에서 해당 바의 다른 series의 데이터를 가져오는 기능
- setAttribute incompatible with Content-Security-Policy without unsafe-inline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tui.chart.