Xively graph showing incorrect x axis labels - xively

I'm using the Xively REST API to retrieve urls pointing to graphs covering various feed durations - https://xively.com/dev/docs/api/data/read/single_datastream/. The feeds records temperature and time.
I'm able to retrieve graphs for daily, weekly and yearly reports just fine:
Daily url
https://api.xively.com/v2/feeds/517809771/datastreams/Temperature.png?l=degrees%20celcius&b=true&g=true&start=2014-01-19T22:56:53+00:00&duration=1day
Weekly url
https://api.xively.com/v2/feeds/517809771/datastreams/Temperature.png?l=degrees%20celcius&b=true&g=true&start=2014-01-13T22:56:53+00:00&duration=7days
Yearly url
https://api.xively.com/v2/feeds/517809771/datastreams/Temperature.png?l=degrees%20celcius&b=true&g=true&start=2013-01-20T22:56:53+00:00&end=2014-01-20T22:56:53+00:00
However, the monthly report graphs appear to be using seconds since 1970 on the time (x) axis:
Monthly url
https://api.xively.com/v2/feeds/517809771/datastreams/Temperature.png?l=degrees%20celcius&b=true&g=true&start=2013-12-20T22:56:53+00:00&end=2014-01-20T22:56:53+00:00
Any ideas what's going on?

Related

How to Webscrape Data from an Interactive Chart on a Webpage?

I am wondering whether it is possible to extract data (highest hour, daily average, March 2016 to March 2021) from the following interactive chart: Image of Chart: Bangkok-PM2.5 - Long-term History (daily averages)
The Website that contains the chart: http://berkeleyearth.lbl.gov/air-quality/local/Thailand/Bangkok
Then I would like to create a data frame in R with the extracted data from the chart.
Please let me know whether it is possible to do this, thank you in advance.
The following will get you a list of all the data on the page
url <- "http://berkeleyearth.lbl.gov/air-quality/maps/cities/Thailand/Bangkok/Bangkok.json"
all_data <- jsonlite::fromJSON(url)
The historical data for daily average, maximum and minimum temperatures can be found in the following ugly list:
all_data$day_data
I'll leave the data manipulation and plotting up to you...

From a series of timestamps, find where most time was spent

I have a software build that is taking much longer to complete, and I'd like to find out where the build is spending most of its time. I have approx 4,500 timestamps in the format 2022-06-10T10:27:47.775-04:00.
There's no other data, just the timestamps, and I'm at a loss what terms to search for or even what type of chart to use.
This is the chart I came up with:
To get that chart, I pulled unique entries from the series of timestamps, and plotted them on both the X and Y axes. It does at least show where there were larger jumps in time.

Chart monthly average NDVI values

I am hoping to obtain monthly averages for NDVI derived from Landsat data and then produce a line chart.
I have succeeded in cloudmasking Landsat 8 and adding an NDVI band.
Working with code suggested in another post I was able to create an image collection with one NDVI value per month for 5 years.
Now however, when I try and chart this image collection there is no "system:time_start" available so I cannot produce a time series.
Any help would be appreciated.
Maybe I have to go about calculating the monthly mean NDVI values in a different way.
My code is below.
https://code.earthengine.google.com/7c0abe5c696a4aa246647f4b34e2f48c
This can be fixed by simply replacing the line .set('month', m).set('year', y) by .set('system:time_start', ee.Date.fromYMD(y, m, 1)) in your function calculating byMonthYear.
Using mean() method (or other reducing methods such as median(), max(), etc.) on ImageCollection would result in the loss of all image's properties including system:time_start. This is fairly reasonable as Google Earth Engine has no idea from which image it should take properties.
The above fix just manually adds system:time_start property back to the mean image. This property should hold a ee.Date object (I just made it the first day of the month).

R plotly: Click in a graph and creates a new one or filters other

It is possible to have a time series graph in plotly that when you click a data point in it, it will generate another graph (next to it)?
For example, a graph with the time series of the price of a stock. And when you click the price on a particular date (lets say 10-jun-2017) a new graph appears that has the daily return histogram of that stock until 10-jun-2017.
Thanks!

How to show monthly data on diagram in Power BI from datetime

I have historical daily gold prices in excel and I load them to the Power BI. But in default, Power BI shows me only year based value, but for year 2016 i have values only for January and February and therefore diagram is distorted as you can see below.
Base data looks like (can be downloaded here in .csv)
Visual setting is
And i want to see diagram curve to be done by months to prevent distortion.
Curve should be similar to this diagram
There are years only as a description
Thank you for help
PBI is has generated a Date Hierarchy with only a Year level. I can tell that from the word "Year" appearing under on the Visualizations pane, under "Date" (in the Axis Section).
I would click the small down-arrow to the right of "Date", in the Axis section. I would change that setting from "Date Hierarchy" to "Date". This will plot every daily value on the chart.
Unfortunately you cant control the date format used in the X-Axis labels - hopefully they will add that in some future release. Their automatic labeling is usually OK.

Resources