JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Gantt I found a visual bug in the gantt chart baseline

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #109740
    Guillermo Rubio
    Participant

    Hello, when showbaseline is enabled, i found that the baseline printed when view is bigger than week is not starting where it should be, is using the same spacing between start of month/week as the actual bar.

    Let me explain with an example, lest say i have the datasource with

    [{
    “id”: “actividad-1”,
    “label”: “INICIO”,
    “dateStart”: “2020-11-03T23:00:00.000Z”,
    “dateEnd”: “2020-11-17T23:00:00.000Z”,
    “planned”: {
    “dateStart”: “2020-11-13T23:00:00.000Z”,
    “dateEnd”: “2020-11-18T11:00:00.000Z”
    },
    “type”: “task”,
    “progress”: 0,
    “disableResize”: true
    }]

    The top bar and the baseline bar will be same length, but baseline should be 10 days shorter. This only ocurs when the view is not showing days.

    if the baseline is in diferent month, it will be printed in the correct month but using the spacing between the start of the month ant teh start of the baseline as the actual bar, i meran if actual bar starts day 4 january and baseline starts 16 february, the baseline will be on february but starting day 4.

     

    If a put the view=’week’ the baseline will be printed correctly.

     

    Thank you

    #109746
    admin
    Keymaster

    Thanks for the feedback!

    We created a work item about this misbehavior and will resolve it in the next patch release.

    Best Regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #110067
    Antal Homen
    Participant

    Hello! I am wondering about the solution to the above problem, when will the fix be available?
    Thank you in advance for your answer

    #110192
    admin
    Keymaster

    Hi Antal,

    We have an active work item. When this is resolved, the info will be posted here: https://www.htmlelements.com/docs/release-notes/. We have a planned release for this month so I hope that this will come into the release.

    Best Regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #110675
    Antal Homen
    Participant

    Dear Peter,
    I use smart-webcomponents-angular/ganttchart version 14.2. The angular verizo is 14s. I can’t use a bigger version than that. Will the baseline patch be available on smart-webcomponents-angular/ganttchart 14.2?

    Best Regards,
    Antal Homen

    #110676
    ivanpeevski
    Participant

    Hi Antal,

    You can safely use the latest smart-webcomponents-angular version in angular 14. We continue to support it.

     

    Best Regards,
    Ivan peevski

    Smart UI Team
    https://www.htmlelements.com/

    #110953
    Antal Homen
    Participant

    Hello!
    I would like to install the latest Smart UI for the existing project, but I don’t know exactly how. I would only use the Gantt module and tried copying “smart.ganttchart.js” and “smart.element.js” to the “..\node_modules\@smart-webcomponents-angular\ganttchart\source” directory, but the following an error message appears on the console:

    TypeError: Converting circular structure to JSON
    –> starting at object with constructor ‘Object’
    | property ‘tasks’ -> object with constructor ‘Array’
    | index 0 -> object with constructor ‘Object’
    | property ‘$’ -> object with constructor ‘Object’
    — property ‘project’ closes the circle
    at JSON.stringify (<anonymous>)
    at BaseElement._setTimelineTaskBaseline (smart.ganttchart.js:90:214550)
    at BaseElement._recycleTimelineTasks (smart.ganttchart.js:90:81834)
    at BaseElement._resizeEventHandler (smart.ganttchart.js:90:180121)
    at BaseElement.refresh (smart.ganttchart.js:90:23405)
    at BaseElement.r (smart.element.js:20:73122)
    at BaseElement.propertyChangedHandler (smart.element.js:20:106759)
    at BaseElement.propertyChangedHandler (smart.ganttchart.js:90:21185)
    at t.updateProperty (smart.element.js:20:75859)
    at BaseElement.set [as showBaseline] (smart.element.js:20:76993)

    This message only comes if I also use the baseline.
    What am I doing wrong?

    Best regards,
    Antal

    #110954
    admin
    Keymaster

    Hi Antal,

    You can send a sample to support@jqwidgets.com which demonstrates what you experience and describe the issue. You can also post it as a Github issue and share it here.

    Best Regards,
    Ivan peevski

    Smart UI Team
    https://www.htmlelements.com/

    #110955
    Antal Homen
    Participant

    Hello,
    I found out where I went wrong, I managed to update the Smart UI. It works well, but GantChart’s baseline in the “year” view still doesn’t work well. The baseline is displayed well in the “month” and “week” views. Previously, the baseline did not work well in the “month” view either.

    Best regards:
    Antal

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.