eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Change fill color of bar in gantt chart

Hi

i am using series.point.events.click as suggested but on this i am not able to open material dialog. Dialog object is coming undefined, but if i use dialog outside highcharts its working fine. any suggesstions
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Change fill color of bar in gantt chart

eraka,
It looks, that my colleague has answered you on the topic, which you created here: viewtopic.php?f=19&t=49121 Please, do not duplicate posts on our forum and wait for the reply on your topic. That makes it much easier to track the whole issue in one topic (for us, and future users who might face a similar issue).

Regards!
Hubert Kozik
Highcharts Developer
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Change fill color of bar in gantt chart

Hey my apologies for the same.


for that border fiddle https://jsfiddle.net/BlackLabel/avd671z5/
here width i can see is increasing. I want something like https://stackblitz.com/edit/highcharts- ... mponent.ts
so can i use completed attribute.

Not sure it can be used, as i understand it represents point completion percentage but in my case it will b static border.

so can u confirm on this.

regards
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Change fill color of bar in gantt chart

Hi Hubert

I saw this fiddle https://jsfiddle.net/BlackLabel/avd671z5/ but here the border width is varying in each point item.

I want something like this https://stackblitz.com/edit/highcharts- ... mponent.ts

though here completed attribute/field id used which shows how much task is completed . But in my case i want border of same as point color which will b fixed in all point. Basically i want left border.
so may be i can give completed: 0.02

but i am not sure whether we can use completed as showing left border.
please help me on this.
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Change fill color of bar in gantt chart

HI

I can see we can have different border with this https://jsfiddle.net/BlackLabel/avd671z5/

but width is increasing in each point item.

I found this https://stackblitz.com/edit/highcharts- ... mponent.ts where we can have fixed border with each point item but it is using completed attribute.

so though it mark the item completion can we us it for border purpose. Can you confirm me on this?
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Change fill color of bar in gantt chart

eraka,

Yes, you can use complete property and disable (or format properly) dataLabels for points, like in this demo: https://jsfiddle.net/BlackLabel/r01sek5q/ But, as you said width of that "border" will depend on the point width, but sure you use this "trick".

Best regards!
Hubert Kozik
Highcharts Developer
eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Re: Change fill color of bar in gantt chart

thanks!!
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Change fill color of bar in gantt chart

No problem! Do not hesitate to contact us in the future.
Hubert Kozik
Highcharts Developer

Return to “Highcharts Gantt”