How to create an average line in stacked column chart? - highcharts

I fetch data from server as two columns, date as xAxis, and decimal number as yAxis. I need to create HTML5 chart in iReport/Jasper studio (for example stacked column chart type) using those columns (easy part) and then I need to create one line on yAxis that will represent average value of second (decimal) column for whole dataset.
Something like this
I tried to create two variables "sum" and "count" with reset type "report" and create measure as division of those two values to get average data set for whole report. Chart is not considering that value as constant while rendering yAxis points. For example, if I have 25 rows in dataset, for each point on graph it will decrease value of "sum" variable for 1....so "sum" will have values, 25, 24, 23,....,1 while line is rendered on chart.
Tried with StackedColumnLine chart type, but same results.
Anybody knows how to do this?

Related

how do I create a stacked column chart with 3 different columns over each x-axis value

I want to make a stacked column chart with the data below. The workstreams would be on the x-axis and I would want three columns over each of them, one for each month, and the 'Reschedule' and 'Cancel' values would be stacked for each month. Not sure if this is possible, I've tried a couple things and can't get it to work.
The only way I've found is to set the series axes to left and right to separate them into columns. But this means that only two chart columns per x-axis data point.
So in your case, if you set up a stacked chart with the October and November values and then select each November series and change the Axis for each to the right, the two November values will be stacked in a column next to the stacked October values. Unfortunately, since there are only two axes, there's no way to then include the December values.
Original source is here: https://medium.com/#angellily0330/a-simple-way-to-create-clustered-stacked-columns-in-google-sheets-68792498d3ed

Way to make a pie chart using sum of certain cells in a column based on the tags in another column

I have a spreadsheet set up as a type of checkbook and I was wondering if given a column called "Amount" which records the various dollar amounts of the individual transatction. And another column "Reason" which the reason for a transaction is written down "rent, eating out, etc". Could I make a pie chart that will add all of the values that are in the Amount column if they have matching reasons in the Reason column.
So if I have five Reason entries listed as "rent" can I then get the sum of each cell from the Amount column that is in the same row.
Essentially I want to have a resulting chart that shows the total I'm spending on each reason with the labels that match the reason category.
--Edit
Heres an image of how my spreadsheet is set up currently with the solution of using filters to make a bar chart but I wonder if there's a better way to do this
Create a chart with Columns A (Amount) and B (Reason).
Create a filter with Column B (Reason)
Select/deselect the reason you want to include
You may also consider to filter with a slicer

Showing a small numbered values along side with big numbered values in Google Sheets chart

I have some major values in a google sheet chart with numbers between 100:1000, I want to show other values which are between 1:30.
I wanted to combine them in a combo chart but the problem is with the big values that when its combined to form a combo chart the bars are showing according to its numbers which is between 100:1000 while the line of the small values doesn't appear at all as its below the axis of the big value numbers.
How can I show a significant in the small valued numbers which are represented as a line alongside the big valued numbers?
All tutorials are for Excel, not Google Sheets
You would do this by setting a different scale & axis for the large values.
Right-click the chart > Series > [The column that is really bi]
There is a "Axis" drop-down, switch it from "left" to "right"
You can also get there in the chart editor.

Graphing Dynamic Line Graphs for ComboGraph Excel 2010

I want to create a combo chart with 2 line graphs. One of them is sourced from a pivot table in another worksheet and another is a horizontal line which may be
adjusted.(Think of equation y = 500.) How can I graph the second graph?
The circled number is horizontal graph (y = 18879.00) and it can change. How can
I graph the dynamic horizontal graph?
If you want to keep using a pivot chart, you can create a Calculated Field with the value of the line, add that to the chart and format the series as a line. With this technique, the line will not be dynamic and you will need to change the calculated field value when you want to move the line.
If you want the line to be dynamically linked to data in a cell, then you can't use a pivot chart. You'll need to create a regular chart from the pivot table data and add the line as a new data series. There are several techniques how to achieve that. The screenshot shows how the line can be plotted by having one value for the first and the last data point each. Cells H3 and H14 both point to H18, where the line value can be changed in one cell.
Add the data in H3:H14 as a new series and format as a line. If the line does not show, make sure to set the option for "Hidden and empty cells" to connect data points with line.

Column chart not showing series properly in Highcharts

I have the following charts where the series data is an array of config objects:
enter code herehttp://jsfiddle.net/AANAB/
http://jsfiddle.net/AANAB/1/
Try changing the chart type to pie.If you observe now three series will be shown.Why does the column chart consider this as one series and the pie chart as 3 series? My requirement is to be able to render the column chart and pie chart as three separate series for the same given data. Is this possible?
First and foremost thing,
pie and column are 2 completely different types of charts.
column can be said as a graph, and pie as a chart.
column chart has 2 axes namely x and y while pie is distributing the area proportionally.
there is no mistake in this one. they are rendered properely.
For pie chart the structure accepted is
{
name: name of the slice,
y: value of the slice
}
each slice has its own name like the xAxis categories we provide for column chart.
the Y has the value is common for all the highcharts.
so here what i recommend is to maintain the datasets differently for both column and pie to get what you have required.
All works properly, in pie chart you have different colours, only, so you can set the same color then you achieve the same effect as in columns.

Resources