I have data in json format with date and values. Is it possible to switch from daily chart to weekly chart (rollup) through only any JavaScript based charting application , where i can mention the rollup function to be either sum or something else.
I want to avoid any server-side calculations.
Any suggestions or example will be of great help.
Related
I have an excel model that is used for running scenario simulation. There is a push to move the analysis to python/javascript for efficiency reasons and eventually move to the web. Below is a snaphot of how the excel model is setup.
The columns represents days which determine working and non working days in a calendar. The rows have variables which quantify how the day is progressing. In other words, the day based var (row) is populated on input. The individual columns then calculate formulas based on the day variable. I have oversimplified to illustrate however there are at least 100 rows with different variables and the 365 days to simulate. Finally, there is an optimization row which is a variable that will be altered to find the best solution.
Now, i need to move this data structure to either Javascript or Python. I understand I need to use 2D arrays to accomplish this task. Any packages and/ or methods that i can utilize to execute this model will be helpful.
I have coin currency market application and I would like to integrate a graph in it, however I don't know from where data should be taken. Is there some API that I can integrate into my highcharts in order to get graphical representation of values of the coin in the past 7,14,30 days? I have scrapped all data from http://coinmarketcap.com/ but I can't scrap graph because it's canvas. Can you help me with that? Where to search for coin data in the past?
The coinmarketcap site uses json data for the charts. If you look at the network activity in the console, you can see requests for items like:
http://coinmarketcap.com/static/generated_pages/currencies/datapoints/bitcoin-main.json
This contains the json data for the bitcoin chart. However, there does not seem to be any way to specify different time periods.
A quick look around produced this site for bitcoin info (https://bitcoinaverage.com/api). There are lots of links which may help here: able to get prices from here: http://bitcoincharts.com/charts
You can also check yahoo fincancem which allows to get data via API.
I'm currently extracting the amount of sessions by date from the google analytics api. I turn this data from a basic Javascript array into a JSON. The JSON data looks like this
[["20140521","7"],["20140522","5"],["20140523","1"]]
The date then the amount of sessions.
I'm fairly new to using D3.js but can't seem to find an accurate guide on how to take each object and plot my dates as the x and my sessions as the y. I'm also aware that I may need to make my data look like this: ["20140521": 7] How could I go about doing this?
If somebody could point me in the right direction it would be much appreciated. Please let me know if you have any questions!
Thank you!
I would like to create charts similar to Google Analytics which allow you to aggregate data by day, week, month...
As an example, the following chart data displays daily data for a month:
And by clicking 'Week', the chart aggregates the data points into weeks:
The closest I can find is the Ruby library Timeslicer, https://github.com/Trimeego/timeslicer . Is there something similar in Javascript or a Flot plugin out there?
Have you with tried http://www.jqplot.com/ ?
It is easy to use... but if you use MVC I would use the Char built in object. Anyway, I hope this can help you!
I would like to plot an array of numbers (int/float/binary/..) as an image using Javascript and I don't know exactly how to do it..
The system is composed of a CORE part done in C++ and a GUI part done in jQuery, and I have to show results calculated by the CORE in the GUI side. I can pass them in any format such as binary files, XML files,... but I don't know how the GUI might plot an array of numbers and show them as an image to the user.. Also It may be useful to have an scale of colours..
any suggestion on doing that? any available library for that purpose? every idea is welcome!
thanks in advance!
cheers
Have a look at d3.js. This library provides plenty of possible visualizations and is quite easy to customize.
Here is a list of plot libs in js:
http://javascript.open-libraries.com/utilities/chart/20-best-javascript-charting-and-plotting-libraries/
You need to format your data in json to get it work. if the data set is very big, better to plot is on server side and send a image file to client.