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
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.
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...
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.