I want to create bar charts similar to web server logs. I have events in my database which all took place at a certain moment, I would like to grab all these events and then chart how many occurred each day, week, month, whatever on a bar (column) graph.
For example I want to chart how many visitors I had in a month in 31 columns, each representing one day.
Is there a charting application whereby I can grab all the visits for the month and give these dates to the library, and it will divide them into time periods of my choosing (e.g. view by day)?
If not then what is the simplest way of creating the data? 31 DB queries? One DB query and then checking the dates and divide the events up into 31 lists?
I'm using Groovy and Grails.
You may query your database to get Map which maps number of events to a certain date. Use criteria builder to make a query that returns grouped by date.
I would just add Google Analytics to my website and use their interface.
To develop the software for handling these queries is a big question that I can't answer here. It's a product in itself.
Related
I am trying to make a finance tracker in sheets. I have checkboxes for each thing that needs to be done with values set for if the checkbox is checked or unchecked. I want to be able to see how much I am behind by adding up the values of the unchecked boxes. However because I have dates in the future I can't just add all. I just want to see how far behind I am compared with today. So if I haven't put the money in my savings and the box is unchecked then it will add to the amount, however only if the week is from before today, not next week's or next months included.
I have tried looking into how to account for today's date and found a function however that's only to find today's date, not to look for times before today's date along with I could do if functions but I would need to compare each individual checkbox and considering I have several for each week, that wouldn't do any good either. I have no clue if this is even possible but I have to assume this would be for accounting finance trackers.
I recently decided to update my spreadsheet of games I need to complete. In order to ensure my data was constantly up to date I made use of the IMPORTXML function but with the amount of urls I have begun to encounter 'loading' issues.
This is the spreadsheet:
https://docs.google.com/spreadsheets/d/1ZdcsIf9Upn_0zqTFyLAm1TMMFu_MpyTEm23EU0nVaTA/edit?usp=sharing
(Columns B,E,G and I are usually hidden)
Column A is the url.
Column B scrapes the image url and column C displays it.
Columns D,E,G and I scrape the data I want and displays it in columns D,F,H and J.
If my aim is to have upwards of 500 urls, is this something that can be only be accomplished with a script?
In this scenario you are encountering the limit of Google services. That quota is reached by aggregating the usage of all documents and projects. Also please be aware that there could be more than one import inside the same document, like one per every cell in your example.
To diminish that usage you could modify old documents so they don't refresh anymore (commenting out the relevant pieces and deactivating triggers). Alternatively you could just delete them. If you plan to run large amounts of imports, you could use Apps Script. Although this option is limited by the same quota discussed above, you could programmatically control when and how much to import in order to optimise your utilisation of Google services.
So I have an issue I cannot wrap my brain around. I am creating an employee vacation tracker, and I have already multiple sheets with different data, i.e. one consists of Google Form answers about when the employee wants to take time off work for holidays. Please note that I also already have data on employee availability each standard day of the workweek.
Alright, onto the problem. Let's say 'Lukas' is a part-time employee and only works Tuesdays, Wednesdays, and Fridays. He sends in his vacation plan: he will be enjoying the seaside from 1.8. until 15.8. How on earth can I combine multiple sheets and data in such a way, to only count his holidays by his actual workdays? I can not even begin to write the formula - this is where I should note I am a beginner at Sheets.
Alright - I took a look at your mock-up sheet, I must admit it's still felt somewhat unorganized.
Due to the lack of enough dummy data and without being certain whether or not you empty/refresh the weekly availability tabs (I'd recommend you not to do so), it wasn't fully clear what you wanted.
Nonetheless, I couldn't resist, I've been working on several projects and your topic gave me some creative inspiration, so I went ahead and did a major rebuild in your mock-sheet.
Should you want to use or implement it, here's some info good to know:
The Employees tab is meant as an input field for any coming and going employees; just add any names there and they will be automatically added to the main schedule.
I mocked some more data, so the output might not be what you expected, but;
In the Holiday overview tab you can see all employees with the days they've taken, planned, and left.
In the Schedule Dashboard tab, you will find three main sections.
The working schedule based on the data from the Weekly Availability tab of which I guess you manually move over data to from the Availability Responses tab.
The Holiday schedule; this fully takes into account whether or not it overlaps with a supposed working day, or if the person was off already anyhow. Therefore; Holiday is shown when it overlaps with a scheduled working day and Day Off is shown when it doesn't. Only the Holidays are deducting the remaining holidays.
The right one I did based on my own experiences; it works like an alerting sign that whill show you if holidays are approved while still being scheduled, where I work we do this the other way around. Holiday Request > We unschedule > We approve holidays > No overlaps should exist.
I posted some comments in the sheet here and there on orange tiles.
Curious to know if this helped!
I'm trying to generate a chart in Google Sheets that will show data for specific days in a week (a chart for Monday, Tuesday, etc.) I have sequential dates running in a single column down the rows and I am able to chart the other data associated with these dates from the other columns, however, I can't seem to select the data for every Nth row, only for all rows.
The only solution I could come up with is manually adding a new Series for every instance, but this isn't a viable solution.
To simplify, I have a chart showing trends throughout the entirety of my dataset, but I'd like to have charts for days of the week as well (SUN - SAT). Is there a way to do this inside of Google Sheets, or is there an external tool that will be necessary?
Its very possible.
It would be easier if you could share a sample sheet with some data.
This is the basic idea, say your Dates are in A and your data is in B. This formula:
=FILTER(A2:B,WEEKDAY(A2:A)=1) would show ONLY sunday data, =FILTER(A2:B,WEEKDAY(A2:A)=2) would show ONLY monday data,
etc.
From what I understand, you want the charts to grab data continuously as you add data to the sheet.
I think it's time to introduce you to Google Charts API.
There are two approaches I can foresee of the top of my head:
Use an Apps Script to build your chart with the Charts service and the Spreadsheets Service and embed it into the spreadsheet.
OR
Deploy the script as a a Web App and build a charts dashboard using the Charts API
Either way you can harness all the power of Apps script.
Further reading:
How to use Google Charts
Query Language Reference
With JIRA, there are features that allow you to Start Progress and Stop Progress on an issue or various issues at any given time. Is there a way for me to go back and see a chart or a graphical representation of how my time was spent over a set period of time?
If I wanted to see how many bugs I worked on in April, and see how much time (graphically) was spent on each bug, could that be done, and if so, which version of JIRA would allow me to do that?
I dont think you can see for a given month how much time was spend on a task. You can see how much time was spent on a task, but not what time period it was for.
I'm sure you've already seen this:
http://www.atlassian.com/software/jira/docs/v3.13.3/timetracking_report.html
There's a Time Sheet Summary report that comes with the Timesheet Report and Portlet plugin - it shows you a list of the JIRA issues you've been working on together with the time per day for a configurable period. No charts, though, I'm afraid.
I think in general that time tracking is ripe for someone to write a really good JIRA plugin; I'm not totally happy with any of the current ones.
Go with the Tempo plug-in for jira. It is brilliant.
You can implement this visualization with the JIRA PDF View Plugin, like this:
Create a filter that returns the issues to be used for this visualization. Run it and invoke the plugin from the "View" dropdown menu.
Write a little Groovy script that iterates over the returned collection of issues, and:
Builds a mapping from "month" (key) to a data structure which holds a triplet of "totalTimeSpent, issuesWorkedOn, issuesFixed" (value).
At each issue compute the sum of the "time spent" records and add it to "totalTimeSpent".
Increment the two other counters accordingly.
When your script completes you have all input data to draw a timeseries chart.
Generate a JFreeChart TimeSeriesCollection dataset. It should contain 3 TimeSeries (3 lines) for the 3 types of values.
Create a simple PDF template that displays a single timeseries chart, which takes the dataset returned by the previous script to render a timeseries chart. Check the timeseries chart example in the tutorial for directions.
The final chart will be something like this:
Disclaimer: this is a paid add-on for JIRA, and I'm a developer working on it.