close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Investment Entry & Exit Points Line Graph

Thread began 8/20/2010 3:49 pm by jade.burnside372067 | Last modified 8/23/2010 3:01 pm by Jason Byrnes | 2564 views | 3 replies |

jade.burnside372067

Investment Entry & Exit Points Line Graph

Hi there,

BACKGROUND:

I'm trying to make a line graph that will have approximately 100 data points.

The YVALUE is the price of a stock and the XVALUE is the date for that price.

The datapoints are for purchase of the stock (entry) and sale of the stock (exit).

I would like to visually distinguish somehow between entry and exit datapoints.

PROBLEM:

When creating additional datasets to mark the datapoints with different colors (blue for entry and red for exit), each dataset also includes a line between the datapoints (each exit is linked to the next exit with a red line).

This means I end up with two different line graphs rather than a single line graph with two differently colored markers.

QUESTION:

Is there a method to assign alternating colors to each record in my WHILE loop instead of using two while loops like I'm doing?

OR

Is there a method to suppress the lines connecting the datapoints but still leave the datapoints?

BONUS SUPPLEMENTARY QUESTION:

Once I've got this working properly, I'd ideally like to replace the dot markers with up or down arrows. Is there a method to use images or alternate shapes for data markers?

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

where you are trying to chart two separate things: entry and exit, you will need to use two combined charts (using 2 while loops).

the line chart does not offer an option to remove the line connecting each point together, this is a limitation of the chart type.

One thing that may help is to use two different chart types,

Create the entry chart as a bar chart and the exit chart as a line chart, see the "Creating combined charts with the XML Editor" tutorial in the solution recipe section of the Dynamic Web Charts support page:
dynamic-web-charts/



The dot markers cannot use an external image to change them, they are fixed in the flash object.

Sign in to reply to this post

Jade but not jaded

Hi Jason,

Thanks for the response.

I've managed to do a combination bar & line chart as you suggested and it works fairly well. Hopefully the client will be satisfied with it.

Now I have another question which I've been wondering about for a while.

QUESTION: Is it possible to force the Y axis labels to display a particular value?

For example, if I've got values ranging from -50 to +50, can I force the graph to always show zero? Right now I've got graphs like that and depending on the particular number of datapoints and the particular values of those datapoints, some of them show zero and some of them don't.

For consistency of representation I'd like to be able to ALWAYS show zero.

Hoping for a positive response to this one :-)

Cheers,
Jade

Sign in to reply to this post

Jason ByrnesWebAssist

in design view, click on the chart placeholder.

In the property inspector, click the Edit In XML Editor option.

In the xml file, you can add a min and max property to the yaxis tag:

for example:
<yaxis color="#767a7f" gridcolor="#888d93" min="-20" max="200">

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...