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.
Error? I said no error is generated. The sample project is a good idea. I attached a project with two charts, both using the same datasource. When there is just 1 column, the line chart shows the lines horizontally, but the stacked line chart does not. When you press the button below, a column is added and both charts show horizontal lines (as they should).
In my opinion, both charts should act the same when there is only one column.
Hello TorX,
Did you try to catch the error? You could try that with a try-catch block. Another thing that could help in this situation might be for you if possible to attach a small sample project which does not generate an error, I will be happy to investigate this further for you.
Hi Boris,
Thank you for your response, much appreciated. Could you in return take a look at my first post?
TorX said: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.
Furthermore, your first quote ends with "an error will be generated" in the documentation. In my case, no error is generated so the data should be fine.
Lastly, the documentation in the stacked line chart data also has the same remarks that you quoted. The problem isn't that it doesn't work, the problem is that it works in the line chart, but not in the stacked line chart.
I hope we can resolve this issue. :)
Could you please take a look at the following link to our documentation:
http://help.infragistics.com/NetAdvantage/WinForms/2011.2/CLR2.0/?page=Chart_Working_with_2D_Line_Chart_Data.html
and especially at "it is important that you are supplying the appropriate amount and type of data that the chart requires" and "Note that it is recommended that the data set contains two or more numeric columns" and "emphasizes the amount of change over a period of time or compares multiple items" - a period of time means that you have a starting point in time and an ending point so basically this means that you would have to create two columns at least.
Please feel free to let me know if I misunderstood you or if you have any other questions.
TorX said: Still, I'm wondering why the line chart does work for 1 numeric column, but not for the stacked line/area chart. Could you or a colleague verify if this is a bug or something? And if so, will it be fixed?
Still, I'm wondering why the line chart does work for 1 numeric column, but not for the stacked line/area chart. Could you or a colleague verify if this is a bug or something? And if so, will it be fixed?
Seriously? 4 months and still no response???