How to create combo graph with 4 measure series? - amcharts

I have a graph I want to reproduce using IcCube reporting, (see example below)
I tried using AMChart combo chart type but without succes because there are 4 series of measures, I can do it when there are only 2 but did not succes with 4.
Could someone provide a working example ?

A better solution is to use the standard Serial Chart. With the latest reporting version you can set-up axis that can be used by more than one measure.
This is how to do it:
Create 4 Graphs, a graph for each measure
Set the first two to Column, the 3rd and 4th to line
Create 2 Value axis
Set the 1st and 2nd measure to use the 1st Axis, the 3rd and 4th to the 2nd Axis.
In Live Demo / How To / Stackoverflow - Combo graph with 4 measures - 2nd solution
That is it. All the rest is embellishment.

Create a combo Chart Create a MDX with 3 measures ( One for the bar
values for both Nb 2016 and Nb 2017 -> Nb, one for 2016 Valorisation
and the last one for 2017 Valorisation )
Add 3 Graph Configuration (two first one already exists)
Set the values of the 3 graphs to Nb,
2016 Val, 2017 Val and the chart types to column, line, line.
Use for the 3 graphs the default Value Axis.
This should do it
In Live Demo / How To / Stackoverflow - Combo graph with 4 measure series

Related

Barplot with frequency by specific factor

I would like to create a barplot in TIBCO Spotfire with frequency on Y axis based on two factors: Stage and Genotype.
This is the standard expression that I have from Spotfire:
Count() THEN [Value] / Sum([Value]) OVER (All([Axis.X]))
It turns out, I do not want the frequency over ALL the data, but within Stage. In a way that the sum of the frequency within each is stage it will be 100%.
I watched some videos and I still did not figured out.
I tried to find a solution to your problem but could't find a working expression. This can still help you :
What I would have done in your case is :
remove the Genotype from the X Axis
set the visualization as a 100% stacked bars (with right click)
add the Genotype as a color by parameter (in the visualization options)

Is there any possibility in ssrs to show matrix below the chart(no gap between chart and matrix) when execution occures?

We have developed a ssrs report based on client requirement,in which we used 6 charts and 16 matrices.
we placed one chart on another chart in same one place.space below the charts is allocated to matrices.
But for matrices, in designing, we placed one matrix below another matrix(The gap between matrices are 1pt and it is the minimum gap between two matrices to identify.if gap is 0pt, then over lapping of matrices occured.)
Reports having multiple parameters like interval(yearly,monthly,halfyearly,quarterly),filtertypes,reporttypes,types .
Based on selection of values in above paramters,only one chart and one matrix will show data.
I have attached design image(showing no gap between charts and matrices,matrix to matrix) and image after report execution.
But, in report exuction, there is much more gap existing between chart and matrix for some selection of paramter values (my opinion is,some time the last matrix executed to display the data)
But when executing report, client don't want gap between chart and matrix for any filter selections.
already we applied expressions on charts visibility condition and matrices visibility condition to display them based on required paramter conditions .
We are using visual studio 2015 and sql server 2016
Is there any possibility in ssrs to show matrix below the chart(no gap between chart and matrix) when execution occures?
enter image description here
enter image description here
Have you tried setting the report property ConsumeContainerwhitespace to true?
Other option is to put them both in a rectangle and test. SSRS is very fiddly when it comes to such layout

Line chart alignment with different data sets

I want to generate line chart examples for different data sets on vida.io. I derive mine from the example on github page:
http://bl.ocks.org/mbostock/3883245
When I draw the graph with AAPL price data set, line chart looks good.
http://vida.io/documents/ohwSdN3usxSCWFaS7
But when I upload another data set (Seattle temperature 2012), the line spills over x-axis.
http://vida.io/documents/QZZTrhk7SmfChczYp
Any suggestion on how I can fix the template to make it work with any data set?
The graph is actually correct. Thanks to Lars for pointing out. December mark is beginning of December. There are data points from December 1 to 31. So the graph is drawn beyond December mark on x-axis.

Mac Excel 2011 - Histogram with normal distribution

Let's say I have a list of values and I have already chunked them into groups to make a histogram.
Since Excel doesn't have histograms, I made a bar plot using the groups I developed. Specifically, I have the frequencies 2 6 12 10 2 and it produces the bar plot you see below.
Next, I want to add a normal distribution (line plot) with a mean of 0.136 and standard deviation of 0.497 on top of this histogram. How can I do this in excel? I need the axis to line up such that it takes up the width of the bar plot. Otherwise, you get something like I've attached.
But...the normal should be overlayed on the bar plot. How can I get this effect?
There are two main part to this answer:
First, I reverse-engineered the grouped data to come up with an appropriate mean and standard deviation on this scale.
Second, I employed some chart trickery to make the normal distribution curve look right when superimposed on the column chart. I used Excel 2007 for this; hopefully you have the same options available in your version.
Part 1: Reverse-Engineer
The column B formulae are:
Last Point =MAX(A2:A6)
Mean =SUMPRODUCT(B2:B6,A2:A6)/SUM(B2:B6)
E(x^2f) =SUMPRODUCT(A2:A6^2,B2:B6)
E(xf)^2 =SUMPRODUCT(A2:A6,B2:B6)^2
E(f) =SUM(B2:B6)
Variance =B10-B11/B12
StDev =SQRT(B13/(B12-1))
Part 2: Chart Trickery
Data table:
Column D is just an incremental counter. This will be the number of data points in the normal distribution curve.
E2 =D2/$B$8 etc.
F2 =NORMDIST(E2,$B$9,$B$14,FALSE) etc.
Chart:
Now, add Columns E:F to the chart. You will need to massage a few things:
Change the series to be an X-Y plot. This might require some editing of the chart series to force a single series to use your desired X and Y values.
Change the series to use the secondary axes (both X and Y).
Change the secondary X-axis range to 0.5-5.5 (i.e., 0.5 on either side of the column chart category values). This will effectively align the primary and secondary X-axes.
Change the secondary Y-axis range to 0-1
Format the X-Y series appearance to taste (I suggest removing value markers).
The result so far:
Lastly, you can remove the tick marks and labels on the secondary axes to clean up the look.
Postscript: Thanks to John Peltier for innumerable charting inspirations over the years.

Making a good XY (scatter) chart in VB6

I need to write an application in VB6 which makes a scatter plot out of a series of data points.
The current workflow:
User inputs info.
A bunch of calculations go down.
The output data is displayed in a series of 10 list boxes.
Each time the "calculate" button is clicked, 2 to 9 entries are entered into the list boxes.
One list box contains x coordinates.
One list box contains the y coordinates.
I need to:
Scan through those list boxes, and select my x's and y's.
Another list box field will change from time to time, varying between 0 and 100, and that field is what needs to differentiate which series on the eventual graph the x's and y's go into. So I will have Series 1 with six (x,y) data points, Series 26 with six data points, Series 99 with six data points, etc. Or eight data points. Or two data points. The user controls how many x's there are.
Ideally, I'll have a graph with multiple series displaying all this info.
I am not allowed to use a 3rd party solution (e.g. Excel). This all has to be contained in a VB6 application.
I'm currently trying to do this with MS Chart, as there seems to be the most documentation for that. However, this seems to focus on pie charts and other unrelated visualizations.
I'm totally open to using MS Graph but I don't know the tool and can't find good documentation.
A 2D array is, I think, a no go, since it would need to be of a constantly dynamically changing size, and that can't be done (or so I've been told). I would ideally cull through the runs, sort the data by that third series parameter, and then plug in the x's and y's, but I'm finding the commands and structure for MS Chart to be so dense that I'm just running around in very small circles.
Edit: It would probably help if you can visualize what my data looks like. (S for series, made up numbers.)
S X Y
1 0 1000000
1 2 500000
1 4 250000
1 6 100000
2 0 1000000
2 2 6500
2 4 5444
2 6 1111
I don't know MSGraph, but I'm sure there is some sort of canvas element in VB6 which you can use to easily draw dots yourself. Scatter plots are an easy graph to make on your own, so long as you don't need to calculate a line of best fit.
I would suggest looking into the canvas element and doing it by hand if you can't find a tool that does it for you.
Conclusion: MSChart and MSGraph can both go suck a lemon. I toiled and toiled and got a whole pile of nothing out of either one. I know they can do scatter plots, but I sure as heck can't make them do 'em well.
#BlackBear! After finding out that my predecessor had the same problems and just used Pset and Line to make some really impressive graphs, I did the same thing - even if it's not reproducible and generic in the future as was desired. The solution that works, albeit less functionally >> the solution with great functionality that exists only in myth.
If anyone is reading this down the line and has an actual answer about scatter plots and MSChart/Graph, I'd still love to know.

Resources