I've been working with Google chart API and annotated timeline. Drawing graphs is fine. I have no problem.
However, I need to draw a timeline graph for share prices. And as you may know, share prices are meaningful only between certain times (e.g. from 10AM to 4PM, when the market opens and closes).
How do I change the Google timeline graph so that on X-Axis, the range is from 10AM-4PM? Right now, it just draws a long constant line between 4PM till 10AM next day before prices start to move again.
Man, I hope that makes sens. (Google finance chart seems to do it).
Thank you SO much for whoever can answer. You are a CHAMPION!
It is apparently now possible if you use the new AnnotationChart API: https://code.google.com/p/google-visualization-api-issues/issues/detail?id=25#c43
You could also use other, similar solutions, like dygraphs for example.
I had the same problem.
After giving it a little though I found workaround. Just fill the missing values with 0 (or null) values. It will do the job
Related
I'm a complete newbie in this matter so please ... be patient!
I have a similar (though more complex, I believe) problem to this (Save data from ArcGIS feature layer) with the comprehensive answer by AaronS.
I thank in advance whoever might be supportive.
My goal is to retrieve (via time based script) data for real time processing from a meteo website (https://www.meteo3r.it/app/public/) based on ArcGIS. In particular, I need two types of data:
A) the most updated values of all measurements available IN A GIVEN METEO STATION (or ALL, then I will filter out)
B) two pixels maps with the radar measurement of rain intensity AND type of fall (rain, heavy rain, snow, hailstorm, ...) FOR ALL AVAILABLE GEOGRAPHICAL COORDINATES
Type A) Data seems available every 30' with a 1h delay while type B) seems more frequent with a 5' sample and 10' delay. Everyone agrees ?
For sure I will benefit of the python code (thank you Aaron again!) to turn data into column vectors as soon as I will be able to retrieve data from the server. And that's exactly the point I'm stuck at.
For A), thanks to Aaron explanation, I found this URL (https://www.meteo3r.it/dati/mappe/misure.geojson) that contains all the measurements for ALL stations at, I believe, the most updated value in time.
B) is definitevely tougher. I can't find anywhere the place where the radar data is stored and how to retrieve it. The only thing I found is that if you search for the word "radar" as Aaron did for "14001", the only file found is this "66xxx.pbf". It's a partially readable binary file that I suspect (not fore sure) is related to sprite images (pixel drawings) that are graphically showing the radar measurement on the map.
Indeed, the website shows something like 10 subsequent sprite images to show a "dynamic motion" of the clouds.
I just need the data in numerical form (lat, long, intensity, type) related to the most updated sprite available on the website.
Anyone knowing how to do it ?
Thanks a lot removing this roadblock to me.
I'm a noob that is trying to make a good impression as I start my recent job. I am not very good at Excel, but I am trying to learn! This website has been a great resource, but I have a question.
We have a program that is like an active clock that ticks along and counts faults, rejections, product coming from an assembly line.
I would like to be able to create a graph that by the hour tells us the amounts for each so we can look at trends and set goals and stuff. My first thought was to find a macro that can take screen shots every hour, but I figure that would require manual entry for 24 times a day.
Has anyone have a better idea or know a macro I could use?
Thank you so much.
I've been using oxyplot for a month now and I'm pretty happy with what it delivers. I'm getting data from an oscilloscope and, after a fast processing, I'm plotting it in real time to a graph.
However, if I compare my application CPU usage to the one provided by the oscilloscope manufacturer, I'm loading a lot more the CPU. Maybe they're using some gpu-based plotter, but I think I can reduce my CPU usage with some modifications.
I'm capturing 10.000 samples per second and adding it to a LineSeries. I'm not plotting all that data, I'm decimating it to a constant number of points, let's say 80 points for a 20 secs measure, so I have 4 points/sec while totally zoomed out and a bit more detail if I zoom in to a specific range.
With the aid of ReSharper, I've noticed that the application is calling a lot of times (I've 6 different plots) the IsValidPoint method (something like 400.000.000 times), which is taking a lot of time.
I think the problem is that, when I add new points to the series, it checks for every point if it is a valid point, instead of the added values only.
Also, it spends a lot of time in the MeasureText/DrawText method.
My question is: is there a way to override those methods and to adapt it to my needs? I'm adding 10.000 new values each second, but the first ones remain the same, so there's no need for re-validate them. Also, the text shown doesn't change.
Thank you in advance for any advice you can give me. Have a good day!
I have tweeted an image illustrating the problem with Flex ColumnSeries on a PlotChart when trying to overlay one on top of another.
Essentially, it can display one series alright, two or more OK on initialization, but after a bit of manipulation (in the user session), the columns lose their sense of where zero is, and begin to float (these series have no minfield, thus zero is their starting point). FWIW: the axis for these columns is on the right, but that can change given the type of data displayed.
The app this is for allows users to turn multiple series of multiple plotting styles on and off, change visual parameters, and even the order in which the series stack on top of each other -- just to give you an idea of what's going on.
Due to how dynamic this all is, I am doing most of the code in ActionScript.
So the questions are:
Is this fixable? Googling around has provided no insights, regardless of inquiry.
Is there a refresh function or equivalent within PlotChart/CartesianCharts that may help?
May this not be a problem with the chart canvas, but more of the axis which the series points to? or the series itself?
If it has not been made clear already: I am lost on this. The issue I have known about for ~a year now was first discovered on a Beta version of the app I am working on now, but it took a while for it to surface in an average user session. As the complexity of the app has grown (by client demand), the issue takes a lot less time to surface.
The issue also occurs on all versions of Flex I have used: 4.5, 4.6, 4.9... etc.
Please help, or offer pointers. Thanks!
Need a little help from someone who knows a little about logistics;
I am currently working with an application known as Framework. The application is not really something that I am familiar with, but regardless I can figure out how it works. One of the tabs running in the application is for expected orders (shipping trucks). Within that, I am able to see where an outbound truck's current location is, as well as it's destination. I am trying to add functionality to the application that would allow me to see an estimated time of arrival to its current destination + the drive back to my location. This seems simple enough, but I'm trying to figure out the best way that I could calculate this. I looked into The Google Distance Matrix API, but I have no need to display a map on the application, all I want is the ETA. I am pretty inexperienced with this kind of thing, so I was hoping someone could point me in the right direction.
Thanks guys.
This may not be the best forum for this question...
It looks like Google Distance Matrix requires you to display the map. An alternative is the open source OSRM project. Natively it's a C++ engine for routing, which outputs directions and the total route information so the any map display is up to you.
There is a demo and HTTP API hosted on the project site but you will need to check if it's suitable for your usage level.
Just an idea, but depending on the size of your delivery area, and how accurate you want the estimated time, you may be able to keep it all in a database.
Let's assume your delivery area is 10 miles x 10 miles.
So that's 100 square miles. We'll use each square mile as a point.
Do a one time calculation of how long it will take to get from each
point to the rest. You can
use the Google Distance Matrix API for this since you're only doing
this once.
This will give you 10,000 records that has every point to point time.
So, if your truck is in point 25, and has to get to point 64, you do a lookup and see that it should take about 10 minutes. plus the drive from point 64 back to the warehouse (point 10) is 8 minutes. Then you'll know the truck should be back in about 18 minutes.
It's not super accurate, but it might be close enough for your needs. I would be curious if you do implement this method.
Btw, if your delivery area is 100 miles x 100 miles, then that would be 100,000,000 location points if each point is 1 square mile. If that's too much, then if you increase your point size to 2 miles x 2 miles (4 square miles), then that's about 6,000,000 records.