Gantt chart not working / different behaviour between Preview and Viewer
Posted: Fri Feb 12, 2021 10:15 am
Hello,
Once again I'm having troubles with charts in Stimulsoft.
This time it is a very very basic sample, where I followed your video tutorial.
Version: latest release 2021
Datasoure: Business Object
I have only two simple elements with an ID (text), Planned start and Planned End date.(type datetime?)
These elements I want to display in a Gantt-Chart
see setup This works fine in Desinger preview
But: as soon i render the report from code, it doesn't work anymore
Still we only want to display 2 elements, (RTH1+RTH2 with simple dates, same as in preview)
When running out of code the following issues happen
BARS are not displayed at all
X-Achse ist nor recognized as date
Also when I out "MM/dd/yyyy" to property "Format" on X-Achse it doesn't help
Also I tried to change the datatype of the property from DateTime? to DateTime - also without success...
What did I do wrong?
Why is the behaviour different? Any ideas?
Once again I'm having troubles with charts in Stimulsoft.
This time it is a very very basic sample, where I followed your video tutorial.
Version: latest release 2021
Datasoure: Business Object
I have only two simple elements with an ID (text), Planned start and Planned End date.(type datetime?)
These elements I want to display in a Gantt-Chart
see setup This works fine in Desinger preview
But: as soon i render the report from code, it doesn't work anymore
Still we only want to display 2 elements, (RTH1+RTH2 with simple dates, same as in preview)
When running out of code the following issues happen
BARS are not displayed at all
X-Achse ist nor recognized as date
Also when I out "MM/dd/yyyy" to property "Format" on X-Achse it doesn't help
Also I tried to change the datatype of the property from DateTime? to DateTime - also without success...
What did I do wrong?
Why is the behaviour different? Any ideas?