AndroidPlot: How can I skip some of the required range values of a fixed boundary domain - androidplot

I'm using Androidplot for my charts.
I would like to know if it is possible - and in that case how - I could accomplish the below.
I set a fixed boundary domain as per below to represent the hours of the day:
p.setDomainBoundaries(0, 23, BoundaryMode.FIXED);
And I would like to represent some quantity count on the y-axis to correspond to the time of the day.
I could use a simpleXYSeries as given in the example:
https://bitbucket.org/androidplot/androidplot/src/master/Examples/DemoApp/src/com/androidplot/demos/TimeSeriesActivity.java?at=master
However, the one challenge I would like to overcome is the capability of skipping some of hours where corresponding records are missing, and be able to leave those unplotted. One solution I thought-of was to create the series from an arrayList replacing all the missing values by zeros however the resulting plot isn't pretty.
I would appreciate guidance on how I could do this with androidplot or any other way that could be suggested.
Thanks.

I found this to accomplish what I was looking for:
new SimpleXYSeries(nums, SimpleXYSeries.ArrayFormat.XY_VALS_INTERLEAVED,"Title")
creating a SimpleXYSeries with ArrayFormat.XY_VALS_INTERLEAVED allowed me to specify a domain value and its corresponding range with.
Even when two series - plotted in the same graph- mismatch in the domain values the plots still are drawn perfectly as I required.
Thanks.

Related

How can I create a salary area chart with a specific data point

I am trying to create a compensation breakdown for each employee to show their financial health in the market. I found instructions on here from 7 years ago for a column chart that was similar to what I'm looking for.
However, is there a way to have a specific point highlighted on an area chart?
I've attached the chart that I currently have, as you can see the data point is not in the blue section like I'd like it to be. I've tried all sorts of formatting and cannot get it to work. Help, please!?
Sample chart with data point here
is there a way to have a specific point highlighted on an area chart?
No, area charts are sums, or counts (like histograms) or actual values. So, when you want to combine that with raw data, it won't work as you requested.
This only works if you have the same amount of data entries per data series. So, you need to have as many values for the blue area, as you have for the orange.
Thus, this is will not work. Also, from my understanding, you want to show where "Andy"'s salary is in relation to others (and the max/min/average).
I wonder if you could do this some other way? Establish what you want to convey with this chart, maybe we can find some alternatives.
But to merge two different sized series, not possible as far as I am aware (not in a way that it looks good).
I found instructions on here from 7 years ago for a column chart that was similar to what I'm looking for.
Would you mind sharing this? Maybe we can proceed further with that!

Qlikview: How do I limit chart (straight table) lines to calculated values?

I have a problematic table, which is interconnected and goes out of memory often, but I've limited it to show 50 items, but now want to limit it to show only lines that one column calculated. The calculation - one price minus another one. I need to limit the lines so that the % or the value is less than 0 (meaning everything with -% or -<0 is acceptable).
Using a calculated dimension does not let me do an if function to accomplish this. The deduction does not work for some reason.
Any help?
I just edited the formula to "=if(dimension='-' or dimension='0', null(), dimension)". So the kicker was actually setting this all to "null()" so the "Suppress When Value Is Null" recognizes things to null.
This actually solves my problem in a different way, however the goal is the same. This skips the values where a calculation is impossible due to lack from one source.
[UPDATE Jun-3rd-2017]: I figured out exactly what I needed. I just made the calculation on the script side and now a calculated dimension is actually restricting all of the values by the calculated dimension as was intended.

Displaying multiple items in Excel graph and few calculation issues

I've done some Googling for each of my issues but haven't found exactly the results as I wanted. Things I need to be done doesn’t probably include any macros/VBA skills, just basic knowledge of Excel.
Now to my spreadsheet. I'm a Dota 2 player and I like statistics. I like it that much that I'd like to keep track of my achievements and results. Only problem is that the game tracker sucks and to get great information in web you have to pay for it, so I decided it's time for me to create my own spreadsheet to track my skills.
I don't know which place is the best to share my spreadsheet but I uploaded it to Estonian uploading host, link is here. I will also provide with pictures so you don't have to download anything.
This is what it looks like in general:
Problem number 1: The left table, or column has 1000 rows. In web design it's possible to make elements fixed depending on the scroll, I'd like to use similar feature here. If the table gets scrolled down, the right table (area with games, bonus and graph) will get scrolled down with it.
Problem number 2: Average MMR. I'd like to show average MMR after each entry depending on the first entries. Right now there's avg MMR for J4:J8. The calculation for J8 looks like this: =AVERAGE(C4:C8). For J7 it looks like this: =AVERAGE(C4:C7). I'd like to do this for all my 1000 rows, but I don't want to type it out. If I try to drag down from the corner, it will continue with C5:C8, C6:C9 etc (so it changes the starting point)
Problem number 3: Under longestGame there's currently Date and Hero. This should show the Date and Hero of which the longest game occurred. I tried to do this with LOOKUP function but it required table to be in ascending order, which I don't want. For current, 44,22, there should be Storm Spirit and 14.06.2015.
Problem number 4: Graph. I'd like to display three series on graph - MMR, average MMR and game length (time). The problem is, that MMR and average MMR will be in the numbers on 3000-7000 but the game length will only be probably in timeframe 20:00-120:00. Maybe it's possible to add two sets of values to the Y axis or maybe set Time series maximum 200:00 and minimum 0:00 and create graph according to this. I'm really stupid making graphs and I haven't figured out a clever way yet.
Problem number 5: Graph again. Right now I have to set the series for the graph. I've currently set it to C4:C54 (so 50 rows). I'd like it to move around a bit and by that I mean that if there happens to be C55-th game then the graph would start from C5:C55 and move along (so it'll count 50 last games).
I'm in a benevolent mood so rather than downvoting your question, because it is not really suitable for this forum I'm going to give you some hints and guidance. The numbers below correspond to the problems in your question.
Excel permits more than one window to be used on the same workbook -
so one window can show the data and one the summary.
Find out about absolute and relative cell addressing - its a valuable bit of knowledge for anyone serious about Excel and it will be of use in solving your problem.
Find out about the MATCH function. You can use this to find out which row of your table contains the longest game, shortest game, max MMR, min MMR by matching an element from the summary on the right (cols M onward) against the appropriate column table on the left. The find out about the INDEX function - this can be used to pull the values in the columns for Hero and Date which correspond to a specific row (such as the row containing the longest game, shortest game, etc). Search INDEX MATCH and find out why using these two functions in combination is often preferred to using the VLOOKUP function
Persevere - there are graph options available to do what you want and the only way to really learn is to go through the pain of trying them out, failing and working at it until you succeed.
Set up an area of worksheet to hold the 50*3 table of data for your graphs. Find out about the COUNT function and think how it might be of use in determining which rows of the data table map to the 50 rows of graph data. Then think about how to populate the graph data table using one of the functions mentioned above. Incidentally, C4:C54 is actually 51 rows, not 50.

Excel Custom Number Format on chart Axis

I'm trying to set a Custom format for the Y-Axis of an Excel Chart and I'm not getting the result I need. I've referenced the Peltier webpage as a good source of information on creating custom Excel formats. I've come up with the following.
[>=1000000]0,,"M";[>=1000]0,"K";0
It works well until I need the rage to show values like 1 million, 1.2 million, 1.4 million, ect... I've tried
[>=1000000]0.#,,"M";[>=1000]0,"K";0
It does display 1.2M and 1.4M as needed but it has a period on the 1 million line "1. M". How do I modify my format to only show the period when the number to right of the decimal point is not zero?
So it looks like the best approach to allow the Axis to scale normally is to show a Zero on the right hand side of the decimal point, therefore always showing decimal point.
So, using
[>=1000000]0.0,,"M";[>=1000]0,"K";0
produces
800K, 1.0M, 1.2M, 1.4M, 1.6M, 1.8M, 2M, 2.2M
Without sample data together with expected results this may require some tweaking but you can add a specific circumstance to remove the decimal point. One of these might be appropriate.
[>1000000]0.0,,\M;[=1000000]0,,\M;0.0,K
[>1000999]0.0,,\M;[>999000]0,,\M;0.0,K

excel: charting with unknown number of data

Let's (for discussion purposes) say that I have x and y data in 2 columns. They're some measured data which, several times a day, a few of them are added (usually 4 times a day).
Now, I wish to plot y=f(x) (linear scale), but the problem is since data is constantly added to determine the number of points which will go in the plot. Always creating a new plot and then formatting it and all, is troublesome for ... reasons.
Is there a way to do this using excel's build in functions ? Should I use vba ? I tried googling, but I don't know what to search for. I'd appreciate any help on this, even if its just a point in the right direction.
Is there a way to tell excel, use all points in this column until you hit an empty cell ?
You can do this without any VBA. Jon Peltier has an example by Debra Dalgleish on his website:
http://peltiertech.com/Excel/Charts/DynamicColumnChart1.html
It can be pretty frustrating to Google anything related to Excel because there is so much junk out there, but I've found that if there's something "obvious" that you know shouldn't be so hard, one of the various "MVP" sites will have covered it.

Resources