8000 color_progress property for bar doesn't work · Issue #532 · frappe/gantt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

color_progress property for bar doesn't work #532

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

Open
reregaga opened this issue Apr 16, 2025 · 0 comments
Open

color_progress property for bar doesn't work #532

reregaga opened this issue Apr 16, 2025 · 0 comments

Comments

@reregaga
Copy link
reregaga commented Apr 16, 2025

I don't know what this is related to, but I have two errors in working with the color_progress property.

  • In case of bar A, the progress is not colored!
  • In case of B, everything is OK, but I don't like that the background color on the left is a bit visible on the corners, apparently it's because the radius of the progress and the bar are different?
  • In case of bar C, the progress is painted with the color I specify for the background, the progress color is ignored/overwrited!

Image

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  
  <script src="https://cdn.jsdelivr.net/npm/frappe-gantt/dist/frappe-gantt.umd.js"></script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/frappe-gantt/dist/frappe-gantt.css">
  
  <style>.gantt-container{padding-bottom: 60px;}</style>
</head>
<body>
<div id="gantt"></div> 
<script>
  let tasks = [
  {
    id: '1',
    name: 'A',
    start: '2025-04-16',
    end: '2025-04-17',
    progress: 50,
    color_progress: 'tomato',
  },{
    id:'2',
    name: 'B',
    start: '2025-04-16',
    end: '2025-04-18',
    progress: 50,
    color: 'tomato'
  },{
    id:'3',
    name: 'C',
    start: '2025-04-16',
    end: '2025-04-19',
    progress: 50,
    color: 'tomato',
    color_progress: 'green'
  }
]
let gantt = new Gantt("#gantt", tasks, {scroll_to:'start'});
</script>
</body>
</html>

Live example: https://jsbin.com/netecumimo/1/edit?html,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0