C1FlexChart with "ChartType.Line" stacked

Posted by: wknauf on 2 September 2024, 9:19 am EST

    • Post Options:
    • Link

    Posted 2 September 2024, 9:19 am EST - Updated 13 August 2025, 11:07 am EST

    Hi C1,

    (sorry before posting another question before answering your recent replies ;-))

    Playing with Dashboard and Chart, I have the impression that the type “Line” does not play well with “Stacking.Stacked”.

    See attached sample: LineChartTest.zip

    It displays data from a list of objects.

    Problem 1:

    the colors do not match: with type = “Bar”, “Col1” and “Col2” have values (which is correct):

    With type = “Line”, “Col1” and “Col3” seem to have values according to the colors, but it should be “Col2” (orange):

    Problem 2:

    the tooltip displays “0” for all values of the green line (which should actually be orange, see Problem 1).

    Best regards

    Wolfgang

  • Posted 3 September 2024, 8:08 am EST

    Hi Wolfgang,

    Thanks for reporting this issue.

    We could replicate the behavior on our end. We are currently discussing it with our developers. [Internal Tracking ID: C1WIN-32892]

    We will update you once we hear back from them.

    Thanks & Regards,

    Aastha

  • Posted 8 September 2026, 8:39 am EST

    (removing text of this post - I had attached the wrong file)

  • Posted 8 September 2026, 8:40 am EST

    Any updates to this? Both issues still happen with .813.

    Attached is an updated sample:

    LineChartTest_813.zip

    Best regards

    Wolfgang

  • Posted 9 September 2026, 12:16 am EST

    Hello Wolfgang,

    We apologize for the delay in the update.

    We discussed this behavior with the development team, and they confirmed that this is expected behaviour. In a stacked chart, the plotted series value is the sum of all previous series values plus the current series value. If a series value is zero, it means that it is rendered over the previous series, and in the case of a line chart, the ‘zero’ series is plotted directly over the previous series.

    Considering your data, where you have a third column with 0 as values, the sum adds up to the exact same value as col2. Thus, col3 is rendered right over col2, meaning the green line (col3) hides the underlying orange line (col2). The tooltip shows 0 since it is the data value of the corresponding series. A bar chart behaves differently because a bar with a zero value is not visible.

    For comparison, the team also tested this behavior by creating a similar chart in Excel and observed exactly the same behavior.

    We have modified the sample project to illustrate the points mentioned above. Please take a look. If you have a different expectation, could you please share what you expect to happen in this case?

    Best regards,

    Vivek Singh

    LineChartTest.zip

  • Posted 9 September 2026, 6:41 am EST

    Ah, I see! It is confusing, but I see that it works as expected.

    You can close this one.

    Best regards

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels