Felix.code
Posts: 3
Joined: Wed Oct 06, 2021 9:50 am

Interactive Gant edge points not dragable

Wed Oct 06, 2021 10:14 am

Hello,

I face an issue concerning an Interarctive Gantt Chart wich I implemented into Polarion with a script provided by Highcharts.

In the original Product, it is possible to drag the edge points of the bars representing the tasks / time slots.
Unfortunately I am not able to drag the edge points and I am not able to move the bars between rows.

This is the highcharts product we want to use:
https://www.highcharts.com/demo/gantt/interactive-gantt

Javascript, HTML, CSS Code from JSFiddle:
https://jsfiddle.net/gh/get/library/pur ... ive-gantt

We use the widget Script Block Parameters in Polarion. This is our code:
https://github.com/Felix-Eder-MTU/Rig-a ... 83/script

The received error message:

Uncaught TypeError: Cannot read properties of undefined (reading 'animObject')
at draggable-points.src.js:267
at l (draggable-points.src.js:25)
at draggable-points.src.js:29
at draggable-points.src.js:20
at draggable-points.src.js:24
(index):276 Uncaught ReferenceError: handleOnError is not defined
at onerror ((index):276)
rangy-core.js?buildId=20200930-1740-20_R2-12855d6d:2557 [Deprecation] The behavior that Selection.addRange() merges existing Range and the specified Range was removed. See https://www.chromestatus.com/features/6680566019653632 for more details.
(anonymous) @ rangy-core.js?buildId=20200930-1740-20_R2-12855d6d:2557
draggable-points.src.js:267 Uncaught TypeError: Cannot read properties of undefined (reading 'animObject')
at draggable-points.src.js:267
at l (draggable-points.src.js:25)
at draggable-points.src.js:29
at draggable-points.src.js:20
at draggable-points.src.js:24
highcharts.src.js:465 Uncaught Error: Highcharts error #16: www.highcharts.com/errors/16/
at w (highcharts.src.js:465)
at Object.d.error (highcharts.src.js:489)
at highcharts-gantt.src.js:23
at highcharts-gantt.src.js:25
draggable-points.src.js:267 Uncaught TypeError: Cannot read properties of undefined (reading 'animObject')
at draggable-points.src.js:267
at l (draggable-points.src.js:25)
at draggable-points.src.js:29
at draggable-points.src.js:20
at draggable-points.src.js:24

So there seems to be a problem with the src files.
I tried using the URL or the data path to the file, but no solution.

Can anybody help?

Best Regards

Felix

User avatar
sebastian.h
Posts: 1684
Joined: Fri Aug 07, 2020 7:08 am

Re: Interactive Gant edge points not dragable

Wed Oct 06, 2021 11:03 am

Hi,
Thanks for your message and welcome to the forum.

You're using Polorion, it's a CMS if I searched it correctly.
And you try to implement interactive Gantt, exacly like at example from demo version.

This looks like a custom implementation, I'm not familiar with this environment.
We can work on some online demo from Highcharts, but what needs to be changed to make it work in your implementation is not really clear.

Let me know if you have more questions.
Best regards.
Sebastian Hajdus
Highcharts Developer

Felix.code
Posts: 3
Joined: Wed Oct 06, 2021 9:50 am

Re: Interactive Gant edge points not dragable

Wed Oct 06, 2021 1:38 pm

Hi Sebastian,

Thank you for answering.
Yes Polarion is a CMS System, we use it for Project Management etc.

In polarion I can add a Script Block and I copied the Javascript Code just like in the example.

A pure online version of the code in a HTML file, does not have the issues.

Best regards

Felix

User avatar
sebastian.h
Posts: 1684
Joined: Fri Aug 07, 2020 7:08 am

Re: Interactive Gant edge points not dragable

Thu Oct 07, 2021 9:33 am

Hi,

In this case, I recommend simplifying the example to the maximum and debugging in your local environment.

Good luck!
Best Regards.
Sebastian Hajdus
Highcharts Developer

Felix.code
Posts: 3
Joined: Wed Oct 06, 2021 9:50 am

Re: Interactive Gant edge points not dragable

Thu Oct 07, 2021 9:39 am

Hi,

I deleted my Cache and fixed the code.
I am able to move in between rows and I can move the edge points, but only the left side and I dont see the edge points like in the original.

Suggestions appreciated.

TY

User avatar
sebastian.h
Posts: 1684
Joined: Fri Aug 07, 2020 7:08 am

Re: Interactive Gant edge points not dragable

Thu Oct 07, 2021 2:35 pm

Hi,

In the case of a custom implementation, I can't help much.
But if you have problems with chart configuration you can reach me any time.

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”