Comments (3)
How can we change the view format to time showing 24 hours, looks like that view is not supported, can you give some hint on changing the core?
Hello, srijeyanthan-cerexio, at present, we have no plan to support hourly view. If you are interested, you can submit PR for support, the core code of ngx-gantt view is located in 'packages/gantt/src/ views'. You can add a' hour.ts ` extends GanttView 'to implement a new view. There may be new problems in the implementation process. You can use [email protected] Email to communicate with me.
from ngx-gantt.
It would be great to have a 24 hour view.
from ngx-gantt.
Almost doable with custom day view. But there is core logic there and that makes my date with time to date so I can't calculate bar width.
In this way it works:
gantt-upper.ts:
computeItemsRefs(...items: GanttItemInternal[] | GanttBaselineItemInternal[]) {
items.forEach((item) => {
item.updateRefs({
width: item.start && item.end ? this.view.getDateRangeWidth(item.start, item.end) : 0,
x: item.start ? this.view.getXPointByDate(item.start) : 0,
y: (this.styles.lineHeight - this.styles.barHeight) / 2 - 1
});
});
}
from ngx-gantt.
Related Issues (20)
- Display only 1 year HOT 3
- Pan/zoom support HOT 1
- Allow user to change cell width HOT 3
- Repaint gantt control HOT 1
- Scroll by mouse drag HOT 1
- Save as image - some gantt bars are missing on export
- Save as image - gray area if page zoom is not 100% HOT 3
- Enhancement
- Gannt Chart completely breaks when scrolling all the way to the left HOT 1
- Advanced Use Linking Gantt Items HOT 1
- Nothing Shows instead of the header bar HOT 3
- [virtualScrollEnabled]="false" 会隐藏最后一个item HOT 1
- 安装后,运行报错Error: export 'takeUntil' (imported as 'takeUntil$1') was not found in 'rxjs' HOT 1
- ngx-gantt依赖ngx-tethys组件库吗 HOT 1
- Type error HOT 1
- Multilanguage support for ngx-gantt-toolbar HOT 1
- Row height HOT 1
- No license specified in packages/gantt/package.json HOT 1
- Cannot find name 'Locale' - error TS2304 HOT 4
- 默认demo 月份视图切换到 周视图 无法切到今天 HOT 1
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 ngx-gantt.