Hi,
When I use one numeric column in a line chart, the chart displays a horizontal line over the chart. When I try to do the same in a stacked line chart, nothing happens.
Apparently when I add another numeric column to the DataSource with the same values as the first numeric column, I get the result I want. But I don't want to do this because of two reasons:It means I should 'hack' my code with a fake column and more importantly, the description on the X-axis does not make sense anymore (a label on each side of the chart instead of one in the center).
In the documentation I found "Note that it is recommended that the data set contains two or more numeric columns so that each line can have two or more points.". So it says recommended, but not mandatory.
Can someone help me to get horizintal lines with one numeric data column in a stacked line chart? Thanks in advance.
I am using version 10.3.20103.1000.
Hello TorX,
I created the following case for you: 'CAS-88750-XGQYJX' and I will update you on that matter through it.
Hi Boris,
No that doesn't work. When I set Data.SwapRowsAndColumns = true on chart 2, I get a chart with 1 (filled) line at an angle. When I also transpose the DataSource, the original problem occurs again (no lines visible). When I add a row (to the transposed DataSource) with the same values as the first row, the correct chart appears. However, that is the same workaround as adding another column when Data.SwapRowsAndColumns = false, as seen in my sample project.
It's not a question of "how can I get horizontal lines on a stacked line chart with one column", because I already use the workaround suggested by Georgi. It's "why does the line chart behave differently from the stacked line chart with the same datasource"? They really should behave the same.
Thanks again for your time.
Could you please try to set: Data.SwapRowsAndColumns = true; and see if it helps.
Please do not hesitate to contact us if you need any additional assistance.
I have contacted our engineering staff about your enquiry and will provide you an answer soon.
Thank you for using our controls and components.
Hello Boris,
Have you been able to investigate my example?