IBM / gantt-chart

IBM Gantt Chart Component, integrable in Vanilla, jQuery, or React Framework.
https://ibm.github.io/gantt-chart/packages/ibm-gantt-chart-docs/storybook
Apache License 2.0
210 stars 52 forks source link

Set Background fails for activity charts. #44

Closed johnkraczek closed 2 years ago

johnkraczek commented 2 years ago

After attempting to change the colors of the activity bars in an Activity chart I found that the activity renderer was not functioning properly.

After running the chrome debugger I was able to determine that the Gantt.utils.hasClass() accepts 2 parameters:

image

but in the activity renderer only passes the class its checking for: image

There were some other errors that I fixed inside the setBackground function.

It works for me now, and I have added an example of using the activity chart with colors in the ibm-gantt-chart-dev package.