Let say I have a 2 points in the middle of chart area connected with step line:
------------------
| |
| * |
| | |
| *-----| |
| |
------------------
I actually want the connection line to start at the x axis min value (and y value of the first point of serie) and to end at the x axis max value (and the y value of the last point in serie):
------------------
| |
| *------|
| | |
|---*-----| |
| |
------------------
Can I achieve this somehow declaratively in serie definition?
My alternative solution is to draw artificial (and invisible) point at the x min and x max (and keep those shifted as needed).
Edit:
I ended up solving this by inserting continuously updated artificial points (first and last).
Related
I'm trying to sum up across a row for different numerical variables that have been processed through the Compare Means function.
Below (without the last 'Total' column') is what I have generated from Compare Means; I'm looking to generate the last Total column.
+--------+-------+-------+-------+-------+
| | Var 1 | Var 2 | Var 3 | Total |
+--------+-------+-------+-------+-------+
| Mean | 10 | 1 | 2 | |
| Median | 4 | 20 | 4 | |
| Range | 6 | 40 | 1 | |
| Std.dev| 3 | 3 | 3 | |
+--------+-------+-------+-------+-------+
Here's the syntax of my command:
MEANS TABLES=VAR_1 VAR_2 VAR_3
/CELLS=MEAN STDDEV MEDIAN RANGE.
Can't really imagine what the use is for summing these values, but forget about why - this is how:
The OMS command takes results from the output and puts them in a new dataset which you can then further analyse, as you requested.
DATASET DECLARE MyResults.
OMS /SELECT TABLES /IF COMMANDS=['Means'] SUBTYPES=['Report'] /DESTINATION FORMAT=SAV OUTFILE='MyResults' .
* now your original code.
MEANS TABLES=VAR_1 VAR_2 VAR_3 /CELLS=MEAN STDDEV MEDIAN RANGE.
* now your results are captured - we'll go see them.
omsend.
dataset activate MyResults.
* the results are now in a new dataset, which you can analyse.
compute total=sum(VAR_1, VAR_2, VAR_3).
exe.
I am working on a table where I track down a Meter value on daily basis.
Since it's not really daily updated, I use a formula to forecast the Meter value.
Therefore the forecasted trend between the (variable) days of a manual input is not 100% reliable and made a formula where # m³ was calculated only if not ISFORMULA(B#) (see below), in order to read in column m³ the real usage between those days.
BUT now I came to the idea to autopopulate the m³ cells between the range with an auto-calculated daily average between the days where two values have been inserted manually.
So i came up with this draft version for column C
for C11 =if(isformula(B11),if(isblank(C12),,if(isformula(B12),C12,"RANGE_DIFF/DAYS")),RANGE_DIFF)
where, in this case, RANGE_DIFF should beB12-B9 and DAYS = 3
In other words, how do I determine and return the range of cells between two manually inserted values?
Link to sheet
Thanks in advance :)
+----------+-----------+----------+
| Date | Meter | m³ |
+----------+-----------+----------+
| ... | ... | ... |
| 09/1 | 9,381.296 | 0.75 m³ | <<< MANUAL INSERTION | =IF(ISFORMULA(C9),,C9-C8)
| 10/1 | 9,382.622 | | <<< =TREND(B3:B9,A3:A9,A10) | * =C11
| 11/1 | 9,383.955 | | <<< =TREND(B4:B10,A4:A10,A11) | * =RANGE_DIFF/DAYS
| 12/1 | 9,385.197 | ??? | <<< MANUAL INSERTION | *** RANGE_DIFF >>> =B12-B9
| 13/1 | 9,386.350 | 1.15 m³ | <<< MANUAL INSERTION | =IF(ISFORMULA(C13),,C13-C12)
| ... | ... | ... |
+----------+-----------+----------+
I am creating highchart with wicket. I am getting issue in multiple x-axis.
So my requirement is
I've one Y-axis which will show the values.
I have two x-axis.
so let's assume the data is in format
| Period | Name | Data |
|:-----------|------------:|:------------
| 08/2015 | A | 10
| 08/2015 | B | 15
| 08/2015 | A | 17
| 09/2015 | B | 19
| 09/2015 | C | 20
| 10/2015 | B | 21
| 10/2015 | C | 23
I am able to create simple Name-Data bar chart having name as X-axis and passing all the values of name as categories and data in Y-axis.
But now I have to create a bar chart with 2 X-axis. other X axis will just mark the start and end of period in first X-axis. So my bar chart will have another axis marking the period the x-axis data belongs to.
I have a sheet which im using to build product data. I need to handle some custom SKU's and id like to have them stored in a string like "XYZ,ABC,FGH" in an alternate sheet.
The generic products are generated in the other sheet for various sizes automatically. I would like on the end of this list to be able to take one of these automatic rows as a template and replace the SKU with one of the custom SKU's if they exist in the other config sheet.
So for example:
SKU'S | Name | Width | Height | Weight | Quantity
--------------------------------------------------
PARENT| X | 10 | 20 | 100 | 0
M1 | X | 10 | 20 | 100 | 1
M2 | X | 10 | 20 | 100 | 2
M3 | X | 10 | 20 | 100 | 3
M4 | X | 10 | 20 | 100 | 4
M5 | X | 10 | 20 | 100 | 5
Then append:
ABC | X
XYZ | X
FGH | X
Keeping the existing columns the other products use.
The X's are just a representation for the other columns I want to copy (ive added some further columns as example data). The only thing I want to change is the SKU. Its a duplicate apart from the SKU (which I want to replace) and the Quantity. The consistent one to copy and use as the template would be the row with PARENT as the SKU.
The result is to just be a new row underneath M5 row. These are additional rows to just be tagged onto the end except for a change in the SKU.
The import is a lot of duplication to the database which is the product attributes like width, height, depth, weight, etc. This is set in a sheet I made with the name VARS. So I would create a simple field in VARS for 'Custom Additional SKUs' in say VARS!$B$10 with the value 'ABC,XYZ,FGH'. These would then use the same columns as the SKU's in say a sheet called INVENTORY.
The end result would be something like:
SKU'S | Name | Width | Height | Weight | Quantity
--------------------------------------------------
PARENT| X | 10 | 20 | 100 | 0
M1 | X | 10 | 20 | 100 | 1
M2 | X | 10 | 20 | 100 | 2
M3 | X | 10 | 20 | 100 | 3
M4 | X | 10 | 20 | 100 | 4
M5 | X | 10 | 20 | 100 | 5
ABC | X | 10 | 20 | 100 | 0
XYZ | X | 10 | 20 | 100 | 0
FGH | X | 10 | 20 | 100 | 0
Final solution based on feedback to help others.
Based on the great input from pnuts I went with the following in column A underneath:
=sort(transpose(split(VARS!A1,",")),1,TRUE)
In column B:
=IF(ISBLANK(A7),"",QUERY(SKU!A2:F2,"select B,C,D,E,F",0))
Works like a charm!
Maybe try:
=sort(transpose(split(NamedRange1,",")),1,TRUE)
and next to the above something like:
=QUERY(SKU!A:F,"select B,C,D,E,F where A='PARENT'",0)
copied down to suit.
I have a column chart in Highcharts that looks roughly like this:
| |
| |
S | |
e | | M
c | +-+ | e
o | +-+ | | +-+ +-+ +-+ | t
n | +-+ | | | | | | | | +-+ | | | e
d | | | | | | | | | +-+ | | | | | | | r
s | | | +-+ | | | | | | | | | | | | | | | s
| |1| |2| |3| |1| |2| |3| |1| |2| |3| |
+-------------------------------------------------------------+
Fld A (s) Fld B (s) Fld C (m)
The labels "1", "2", and "3" refer to records; while "A", "B", and "C" refer to fields. So record #1 is represented as three separate values over fields A, B, and C, as represented by the labeled columns. I achieved this result by:
Providing an array to the series config option, one series for each record.
Providing an array to the xAxis/categories config option, one element for each field name.
Providing a 2-element array to the yAxis config option.
My problem is that values in field C will are shown on the Seconds axis, even though they are in units of Meters. I could change the entire series to be on the Meters axis (via the series/yAxis config option), but then fields A and B would show on the wrong axis.
Is there any way to map values within a series to different axes?
EDIT 9/12/2011: If this is impossible as stated, I'm willing to accept an alternate method, such as a different configuration or modifying Highcharts internals, via a plugin or otherwise.
EDIT 9/13/2011: I asked the same question on the HighCharts forum here: http://highslide.com/forum/viewtopic.php?f=9&t=12315, and no one has answered it there either. I'm beginning to think there is probably not any easy answer. :)
A demo is available here: http://www.highcharts.com/demo/combo-dual-axes
chart.yAxis should be an array of two yAxis objects and your series object should specify the yAxis that it corresponds to.
A highslide support person told me this is not possible.
However, another person gave me a possible workaround: create a separate set of series for field C. Then set the values for fields A and B in the second set to null, and set the values in the first set of series for field C to null.
There is a link to a jsfiddle that demonstrates this workaround in the forum topic: http://highslide.com/forum/viewtopic.php?f=9&t=12315