-
Notifications
You must be signed in to change notification settings - Fork 376
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
Hello can do the planned start - planned end and actual start - actual end on the same task with two progress blocks #354
Comments
You can always use a item template and manually add things to the task (If you do not know how to do it - I can write a plugin for this for a fee - send me an email about it if you are interested). Questions: |
If you want to have a planned start and actual start and planned end and actual end plus two progressbars on one task it will be a complete mess - if you want to do it on one DOM element. EDIT: |
However, personally, it seems to me that when there are a lot of tasks on the chart and, in addition, there will be planned tasks and actual tasks, it will only become a mess and unreadable. |
To retrieve the x position in pixels on the current chart use
Replace date with the task time e.g.
There is also |
Realtime position gstc.component.vidoInstance.onDestroy( state.subscribe('$data.chart.time', time => {
console.log(`actual position`, gstc.api.time.getViewOffsetPxFromDates( gstc.api.time.date('2020-02-10') ));
})); Helpful only if you will want to use other than item template. |
If you want to know if an item is currently displayed on the chart get the value const itemsData = gstc.state.get('$data.chart.items');
const isItem1Visible = !itemsData['gstcid-1'].detached; Helpful only if you will want to use other than item templates. |
How to divide the same task into two progress blocks without affecting the data
The text was updated successfully, but these errors were encountered: