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

Message ListMessage List     Post MessagePost Message

  Line Chart
Posted by Steve on Feb-04-2014 03:28
Attachments:
I took the multi line chart from help and only changed the static data and label elements to get them from a database but the points do not match up with the labels at the bottom.  The data is scrunched up to the left side instead of flowing across the screen?
Linechart.JPG

  Re: Line Chart
Posted by Peter Kwan on Feb-04-2014 21:44
Hi Steve,

In your case, it looks like you have 4 arrays. The 3 data arrays each have 6 elements. So
each array represent a line with 6 points. I suspect the 4th array contains the labels and it
has 18 elements. So the labels are significantly longer than the line (which only have 6
elements). The labels are used for the x-axis, that's why the lines are shorter than the x-
axis.

In your chart, there are only 6 visible labels. May be the other 12 labels are invisible (empty
strings), or there may be a "setLabelStep" line that causes only 1 in 3 labels to be visible.

If the above is the cause of the problem, when you read the data from the database,
please make sure all the arrays are of the same length, so that in the chart they will match
each other correctly.

If the above still does not solve the problem, is it possible to inform me the part of your
code that reads data from the database and store them into the arrays? I will try to see if I
can find any clue or reproduce the problem.

Regards
Peter Kwan

  Re: Line Chart
Posted by Steve on Feb-06-2014 03:49
Thank you Peter,  It did have the setLabelStep(3) and I had to limit the number of dates that were inserted into the array.