ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  [MFC]drawing line graph
Posted by Kaiden on Jan-13-2014 16:40
Attachments:
Hi Peter,
If I were to draw a data set which looked like the table below[caputre.jpg],
6 lines are expected to be drawn.
but unfortunately line1 isn't drawn due to lack to points to be lined.

Would it possible to point line1's Xaxis(1)?? like a dot or something to show on the chart
that there is a value.

At the moment, the scale is set properly to minimum to maximum but 717 is not shown.
look at chart.jpg.

a big Dot would be a great indicator.
Thanks Peter!

Best Regards,
Kaiden.
chart.jpg

  Re: [MFC]drawing line graph _ data not attached properly.
Posted by Kaiden on Jan-13-2014 16:41
Attachments:
sorry.
data.JPG

  Re: [MFC]drawing line graph _ data not attached properly.
Posted by Peter Kwan on Jan-13-2014 23:34
Hi Kaiden,

You may use DataSet.setDataSymbol to add data symbols to a line chart, so that each
data point will have a symbol. For your case, you can check if the data series contains only
1 point, and call DataSet.setDataSymbol only if the data series has one point. In this way,
the other data series are not affected.

The sample code "Symbol Line Chart" and "Symbol Line Chart (2)" show how to add data
symbols to a data set. You may use them as references.

Hope this can help.

Regards
Peter Kwan