anychart-solutions / anystock-drawing-tools-and-annotations-demo

AnyStock - Drawing Tools and Annotations Demo
https://www.anychart.com/solutions/drawing-tools/
Apache License 2.0
19 stars 8 forks source link

Not sure if this is the place to comment as I am new to Github and coding in JS #2

Open Perreyster opened 7 years ago

Perreyster commented 7 years ago

Hi all,

Im looking for the full JS code used to develop this graphic

https://www.anychart.com/solutions/drawing-tools/repo/

I work for a small brokerage in South Africa and we looking to make charts more interactive and this would be perfect.

I can code in SAS and few other languages but clueless on JS.

Is there someone out there that perhaps has the full JS code on Codepen or JS Fiddle for me too look at and play with?

loki20beta commented 7 years ago

@Perreyster full js code can be downloaded: https://github.com/anychart-solutions/anystock-drawing-tools-and-annotations-demo/archive/master.zip (or cloned from this repository)

the HTML source code is here https://github.com/anychart-solutions/anystock-drawing-tools-and-annotations-demo/blob/master/index.html the js code here https://github.com/anychart-solutions/anystock-drawing-tools-and-annotations-demo/blob/master/js/common.js

Putting this code into jsfiddle or codepen is possible though requires some trickery and it will not be very easy to handle it there. Please try downloading, cloning or forking this repository - it is much easier way to go.

Perreyster commented 7 years ago

Thanks for the feedback.

Thing is I dont have a server, I use a web hosting service. So need get the full code, html, CSS and JS coded correctly if I want to embed the graph on my website.

And as I mentioned sadly my knowledge of this is limited.

Used to using amcharts, and I know how to get their graphs on my site. But new to anycharts so struggling to find my way. Hence I was hoping there was an example of it on codepen as I am rather familiar with how to get a graphic from codepen onto my site.

Is there a way I can add the data myself instead of having it pull it in from var data = get_msft_daily_short_data();

So id like to say var data = {['2004-01-02', 27.58, 27.77, 27.33, 27.45, 44487700], ['2004-01-05', 27.73, 28.18, 27.72, 28.14, 67333696]

for example.

So I add data to code instead of code pulling it from somewhere.

Sorry for the silly questions but JS a little Greek to me.

My only coding background is SAS and bit of SQL

loki20beta commented 7 years ago

@Perreyster Understood, I will try to put codepen together today.

Perreyster commented 7 years ago

@loki20beta Excellent. Thanks. Sure within a few weeks I'd be able to hold my own. Digging thru manuals and how to guides on JS now.

loki20beta commented 7 years ago

@Perreyster I was able to put all into a Codepen project https://codepen.io/anystock/project/editor/XGgxYM#

The thing is - putting everything here into one file is kind of messy. You need to reproduce the file structure on your hosting and put files as they are placed in this repository or in CodePen project. The only change I made is that data now stored right in the common.js file, you can now replace it with your own or create any kind of function that put it there.

Let me know if this helps.

Perreyster commented 7 years ago

Thanks.

It helps a lot.

Trying to copy the content of your codepen into the format that works for the web host. Might take same time tho.

Currently it shows a anychart logo spinning around. So progress at least.

On Fri, Oct 6, 2017 at 2:35 PM, Timothy A. Loginov <notifications@github.com

wrote:

@Perreyster https://github.com/perreyster I was able to put all into a Codepen project https://codepen.io/anystock/project/editor/XGgxYM#

The thing is - putting everything here into one file is kind of messy. You need to reproduce the file structure on your hosting and put files as they are placed in this repository or in CodePen project. The only change I made is that data now stored right in the common.js file, you can now replace it with your own or create any kind of function that put it there.

Let me know if this helps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/anychart-solutions/anystock-drawing-tools-and-annotations-demo/issues/2#issuecomment-334742279, or mute the thread https://github.com/notifications/unsubscribe-auth/AfDfc-uTNKrZ78CacTFUlYMpZLOCVuV7ks5sph6ggaJpZM4PwDZz .

loki20beta commented 7 years ago

@Perreyster it means some files are there and some are still missing. If you continue having troubles you can send me us a link to your page and we can help to debug. If the link is private and you don't want to publish it - send it to support@anychart.com

Perreyster commented 6 years ago

This is as far as I get.

When I open the html file I see anychart's logo spinning.

On Fri, Oct 6, 2017 at 3:39 PM, Timothy A. Loginov <notifications@github.com

wrote:

@Perreyster https://github.com/perreyster it means some files are there and some are still missing. If you continue having troubles you can send me us a link to your page and we can help to debug. If the link is private and you don't want to publish it - send it to support@anychart.com

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/anychart-solutions/anystock-drawing-tools-and-annotations-demo/issues/2#issuecomment-334757523, or mute the thread https://github.com/notifications/unsubscribe-auth/AfDfc-NMbrm4DBJhNMzXt5wnoGHuPIR0ks5spi17gaJpZM4PwDZz .

AnyStock - Drawing Tools and Annotations Demo