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

Message ListMessage List     Post MessagePost Message

  How to combine Scatter Chart with Line Charts
Posted by steven ho on Aug-18-2016 11:23
Attachments:
Hi~~

I want to product the chart like updating picture

It has Line Chart(using Up-Limit and down-Limit).

It also is Scatter Chart.



And X-Axis is time, it has to be String.

Thank you.
chart3.png

  Re: How to combine Scatter Chart with Line Charts
Posted by steven ho on Aug-18-2016 11:46
Hi~~

I have finished with UP Line and Down Line

Others,Please teach me with how to design the code.

Thank~~~~

  Re: How to combine Scatter Chart with Line Charts
Posted by Peter Kwan on Aug-19-2016 02:24
Hi Steven,

You mentioned "X-Axis is time". I assume you mean the x-coordinates of your data points is "time" as according to your programming language. (I am not sure what is your programming language. In .NET, "time" means a System.DateTime object. In Java, "time" means a java.util.Date object. In other programming langauges, "time" can mean other things.) If this is the case, the scatter points can be added as (in VB.NET):

c.addScatterLayer(anArrayOfDateTime, anArrayOfNumbers, .....)

For the x-axis, you can let ChartDirector auto-scale the x-axis, or you can specify the scale using Axis.setDateScale. You can configure the labelling format by using Axis.setLabelFormat. For example:

c.xAxis().setLabelFormat("{value|hh:nn:ss}")

If the above does not solve the problem, please let me know what is your programming language, and what is the type of x-coordinate. (Please use programming language to express the type of x-coordinate, not human language.)

Regards
Peter Kwan