I am having some real trouble displaying a simple line chart, maybe I am making things too difficult, but I am hoping someone can point me in the right direction. I have some simple data, data points taken a random time intervals. I would like them displayed "Chronologically". When I first attempted this, I had a simple DataTable, but all of my points were displayed one right after another, (must have been treating DateTime as a string). Currently I tried to create a composite Line Chart, using a NumericTimeSeries. and when I add call ultrachart.Series.Add(myNumricSeries), it adds it to the series as expected, but no data is displayed on the chart when it loads.
All help is greatly appreciated!
Greg
I'm still looking for some assistance, however I seem to have gotten past my data issue. I am not displaying the scatter data as I expect, but I cannot get the ConnectWithLines property to draw lines between my data points, I am at a loss, I have scoured the properties and I am fairly certain that I should be seeing lines drawn, but I am having no luck. I also have a question on drawing tickmarks on my X-Axis (time) I would like to get the axis to draw tickmarks every half hour, with smaller marks every 5 mins in between, I assume I'll have to do some math to figure out the scale and such, but I can't seem to control when the tickmarks are drawn, I see the start and end time of whatever scale I am looking at, and one marker in between, but i can't seem to control how often those ticks are drawn, and my smaller tickmarks should be like the marks on a ruler, just little marks, not large ones like the major ticks..
if you created a composite chart with a scatterchart layer, you need to set ConnectWithLines like this:
((ScatterChartAppearance)this.ultraChart1.CompositeChart.ChartLayers[0].ChartTypeAppearance).ConnectWithLines = true
to draw a smaller set of tickmarks, you will need to handle the FillSceneGraph event and manually add Line primitives to the scene. this can be complicated, but there are plenty of forum posts, documents, and knowledge based articles on FillSceneGraph / custom layers to get you started.
Thanks for the help, I was able to get the tickmarks drawn. I have still had significant trouble getting the ConnectWithLines to actually connect the lines. I'm using a basic ScatterChart, and every ConnectWithLines property I can find is set to true, but no lines are drawn between the points...
the GroupByColumn is a column in your data source containing an identifier that can be used to group series. so if your scatter chart data looks like this:
GroupID | ValueX | ValueY
series a | 0 | 0
series a | 1 | 1
series b | 2 | 2
series b | 3 | 3
setting the GroupByColumn to 0 and UseGroupByColumn = true will result in 2 series (2 pointsets) being created instead of one.
I'll have to check the GroupByColumn property. I have had this issue with several charts, and I can get it working but i never figure out what I'm doing to get it to happen. What does the group by column property actually mean. (as an aside I ended up getting my desired chart by switching to a line chart...)
is the ScatterChart.UseGroupByColumn property set to true? if so, the chart might be using one of your columns as a "group by column," and if all the values in that column are distinct, each point in the scatterchart will be drawn independently.