How to minimize space between Columns in amCharts Column Chart? - amcharts

chart.columnSpacing property doesn't work for Simple Column chart. I need to minimize space between two Columns.
How to minimize space between Columns in Simple Column Chart?

You could try adding...
"columnWidth": [number between 0 to 1]
to make the gaps between the columns change. Adding a value of 1 will make them as wide as possible and touching each other, whereas a value of 0 will make them show as just a line going up.
See example... http://jsfiddle.net/cxypjubz/1/

Related

Table cells width - last one the longest, previous equal but as narrow as possible

I don't even know how to start with the problem. I've got the table with a few columns (generated automatically). Let's say there are 5 columns. First I would have to take the first 4 columns, calculate auto width for them, take the longest one and set that width to all 4 of them - so that the first 4 columns have equal width of the widest one but are as narrow as only content allow. The last 5th column then has to fill the rest of the table. Is that possible to achieve that without js with scss only?

dc.js - how to handle overlapping dots in line-charts?

I have a composite chart that contains multiple line charts. However, many dots (points) overlap, causing only the last added line chart dots to be displayed. When hovering over the keys in the legend, only the lines are brought forward/highlighted, not the dots. So for any line charts with only one point and no line it is impossible to see the location of that point.
My current solution is to give each line chart a different dot radius in increasing order since I know the order in which each line chart will be added to the composite chart and it seems that the order dictates the stacking position of the lines/dots. This ends up looking clunky:
Another, similar, approach I thought of was to set the fill-opacity to 0 and stroke-opacity to 1 for a cleaner presentation, but there is an issue with stroke not being set.
Are there any options/methods I may have missed in the library for handling this case of overlapping points? Thanks!

Tableau Remove extra space within sheet border

I am creating sheet with rows of Sale Sums and Columns of each month. Firstly, I am trying to remove this extra whitespace within the boundaries while keeping the squares the same size. I would like the squares of data to take up the entirety of the region. Also, I have tried creating lines to separate each row but adding grid lines creates lines going through the squares.
go to format > borders
select none in columns
select none in rows

SSRS: Can't remove whitespace when hiding Tablixes or Rectangles

I am creating a report which contains tables at the top and bottom that are always visible. However, between these are 12 tablixes which optionally appear based on the existence of data for them. When they do not exist there is a considerable amount of whitespace in the middle section of the report which makes the report look awful.
I've tried two strategies to fix this:
Set up one rectangle to hold all tablixes. Set all tablixes to have the hidden property set to be true if CountRows() < 1. Leave no gaps in between the tablixes so as to not leave cumulative gaps.
Set up one rectangle per tablix. Set all rectangles and all tablixes to have the hidden property set to be true if CountRows(dataset for tablix) < 1. Leave no gaps in between the rectangles so as to not leave cumulative gaps.
I can think of no other setting to rid the report of gaps for hidden tables.
How about a table with separate rows that contains all your tablixes (tabli?) .
Hide the row based on the tablix's no data condition.
It doesn't help for left to right though since hiding a column leaves space.
So, I noticed that there were warnings about overlapping objects. I went back through and removed overlaps and my report did much better at reducing white space. It's not perfect, but acceptable.
Overlapping objects screw up the whitespace on reports! I don't get any warnings about overlapping objects but I tried adjusting the report to ensure no objects were overlapping and it fixes the whitespacing issues without the need for tables!

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.

Resources