Data visualization using seek bar - data-visualization

I have data in a table with timestamp and value of a recorded parameter for, let's just say, 1 hour. Values are recorded multiple times per second.
I need to construct a music player's seek bar style setup using which user can see the values at various times. It is like playing a song but instead of playing song it displays values.
Please see the below image for better understanding of the program's goal:
Data table and data visualization
The program needs to accomplish below tasks:
When the user clicks play button values from the table are extracted and displayed.
User should be able to use the seek bar to jump back and forth and see the values at different times. For example if the user records the values for half hour, he should be able to use the seek bar to see the values at 0:11:45, 0:19:34, 0:5:42 and so on.
I am developing this for ios using swift.
What is the best way to construct the seek bar and synchronize it with the data in the table?

Related

Track clicks on a button based on preceding button clicks

I need to track clicks on a button at the end of a sequence of selections. As shown in the image, there are five different business plans (circled in red), and each plan can be for three different years (highlighted in blue). The user will checkbox a business plan type (e.g., market trend) and click a year (e.g., 2017), then click the PDF button (highlighted in black) to download that particular plan (market trend for 2017 in this case).
So instead of counting the total clicks of PDF downloads, the task is to count how many times a particular plan is downloaded based on the plan type and year.
The PDF button, the checkbox for each plan type, and the click button for each year all can be tracked individually. They are also all on the same URL.
GTM and GA are used for tracking. Can anyone share some thoughts of how to achieve this type of tracking?
Thanks!
Yao
If you are using google tag manager you can use dataLayer.push() to push to an array which can be used to differentiate the clicks based on the interaction.
Approach is described here
Google Analytics custom dimensions
In your particular case you could have the dataLayer configured to add the different key / values for the different report components and then the trigger will be configured to fire when the download button is clicked.
For example on each of the check boxes you could have:
<input type="checkbox" onclick="dataLayer.push({'plan_component': 'Market Trends'});">
You'd probably better having an array to store this info.
The resultant data can be viewed or aggregated via a custom report download. Described here.
Custom Dimensions and Metrics
It can be a bit tricky to understand and you'll need to change the site so that the dataLayer gets populated with the requisite data but this is the way to go. Best of luck.

Fetch Data from Database and display it in a Screen

I am a beginner in ABAP. I want to know what is the best way to fetch data from a database table and display each line in one screen with two buttons (back and next), so that every time only one line of the table is displayed (as in an online QCM).
Thank you in advance.

Show all SSRS data on opening report then hide data to single page

I have a tabular report that has Show/Hide grouping on the rows. The end user wants all data displayed when first running the report, which is no problem. It covers roughly 3 or 4 pages. Can I make so that if I hide all the data, it then refreshes to show the "rolled" up table on a single page rather than split across multiple pages?
Go to properties window of the cells you are toggling display.
In the InitialToggleState property select False, it will show all data when you running the report initially.
Let me know if this can help you.
I decided to go with the report all rolled up when first run. Expanding from that state seems to keep the report on a single page plus I can roll it back up to a single page (although probably simpler to just re-run it).

Get Geolocations from SQL database to be used in Bing Maps

Basically I have a set of geolocations and other information corresponding to each point in a table in a SQL database. I have a Bing Maps website with checkboxes to set different filters for which geolocation pins should be displayed. I'm basically wondering how I can most efficiently query the database and update pins on a map, based on given checkboxes.
Alternatively, as requerying may be expensive as the table size increases, how could I load the entire database and only display certain pins based on the selected checkbox filters?
When researching this I found answers regarding GeoRSS files, but those solutions are specific to points that are all loading at once and that will continue to stay in view. It doesn't seem like filters can be applied in this process (without further requerying).
EDIT: When I say 'filters' I'm basically talking about narrowing down the currently displayed pins by things like the date the geolocation was recorded, and various other things that will use checkboxes. Let's say I have a list of restaurants and they each have their ID, geolocation, date added (to the database), and a foreign key for their type of food. I'd like to be able to select through the available food-types to limit results to Italian and Mexican restaurants but still provide the functionality of showing Chinese restaurants with the click of a button.
And to make it easy, I'll initially take all database entries in.
You could use an SSRS Report with a Map Control to display the info on a Bing Map. That way you can use an expression in the "hidden" property of the marker to determine whether or not to show the pushpin and map your checkboxes to parameters.
See
http://technet.microsoft.com/en-us/library/ee240845.aspx for using a map control.
If SharePoint is an option you can have a completely interactive experience with PowerView.
Here is an introduction http://office.microsoft.com/en-gb/sharepoint-help/maps-in-power-view-HA103005792.aspx

extjs 4 autogenerating a record id

I have a map to which features can be added and removed and am using an extjs 4 grid panel as a view (MVC) to list the features. The idea is that the user can click an item in the grid and highlight it in the map, click a button to remove it etc. The features do not have a natural key so I need to make one up, just a number is fine. At the moment the map starts up with some features already on it so I am able to loop through and give each an id and add a record to the store for each to tie the 2 up, but ideally I want the store to take care of that when each record is added. I also have the problem that when a new feature is created I need to get a fresh new id to use but I'd rather not have to loop through all my features to find the highest id.
I am using myStore.add({id:1,name:'blah'...}) to add the records - should I be using this or insert?
Any help appreciated
Yes you can use the store last to figure out your last record, but my recommendation is to handle ID generation to the server side. Typically database sequencer is used to create IDs.