What does jQPlot's Axis option "scaleToHiddenSeries" do? - charts

I've seen it being used in Pyramid Charts but can't figure out what it does and how to use it.
I've looked it up in the documentation - it's too curt.
"True to include hidden series when computing axes bounds and scaling."
How to supply those hidden series?
How to how make them hidden?

According to the documentation - and as the option's name says - it specify if either or not you want to include hidden series when computing axes bounds and scaling.
Edit - Explanation :
Let's say you have 3 series in your data but you only want to display the two first ones (the third one is hidden). The scaleToHiddenSeries specify if either or not you want to include this third serie when computing bounds.
For example for serie 1, xaxis goes from 10 to 15; for serie 2 from 12 to 17; finally for serie 3 from 11 to 999.
If you set scaleToHiddenSeries to true when your third serie is hidden, the jqplot xaxis will go from 11 to 999. Conversely, if you set scaleToHiddenSeries to false, the jqplot xaxis will go from 10 to 17

Related

Changing the number of divisions in graph scale

I'm having a little problem with graph scale in visio. My goal for now is to make a graph scale (belongs to charting shapes) with 22 divisions in it. But I don't know how to add an option of 22 divisions on the scale (2, 4 and 5 division options are available).
I have tried to add 22 division option in "Define Shape Data" window, but unlucky.
I have searched whole internet for the solution, but I found no solution.
I hope someone here will know the solution.
Just adding 22 to the options will not magically make 22 divisions appear. You will also need to have the shapes (or geometry sections) behind it (22 of them, not just 2, 4 or 5) to be made visible when 22 is selected.
You need to understand how the whole shape is constructed, by looking at the various group sub-shapes (and/or geometry sections) to see how each is made visible/invisible when the 2/4/5 selection is made.

How to adjust bar absolute width in MATLAB

I'm confused with the bar with adjustment in MATLAB, for example, when use bar like:
bar(randsample(0:0.0001:1,100),randn(100,1))
I get an image like this:
It seems like the bar is too thin to have a good look. After searching for help, I can use the code like:
bar(randsample(0:0.0001:1,100),randn(100,1),50)
and I get this:
Seems much better. But if I change the sample number from 100 to 10, the same code won't work.
bar(randsample(0:0.0001:1,10),randn(10,1),50)
I hope I have explained my issue clear. It seems like the third parameter of the bar function is a relative width, which correlates to the input size of the first and second parameter. Can I fix the absolute bar width no matter how many data points input? or there is a better function to draw figures like this? Thanks a lot for any help!
user #am304 is right about the width parameter
What happened in your code is that you set x values to results from randsample(0:0.0001:1,10)
If you give your plot a width of 1 it means that 2 bars which are directly next to each other would touch each other with an equally spaced x.
In your case, you have an irregular x spacing.
The width of the bar is determined by the minimum distance between two x values (which you get from randsample()). Sometimes this space - and therefore the width of your bar - is very tiny. Sometimes it is broader.
Change the with to 1 and make multiple plots. You will notice that two are always touching each other and no one is overlapping and all the others have spaces in between. If you change the width to 50 the plots will somethimes overlap heavily (depending on the randomness from randsample) because your bars are 50 times bigger then the minimum width between two x values.
In case of your randsample(0:0.0001:1,100) example it is just more likely that two values are close to each other, therefore increasing the width helps you see something (because the bars overlap).
From the documentation:
bar(___,width) sets the relative bar width, which controls the
separation of bars within a group. Specify width as a scalar value.
Use this option with any of the input argument combinations in the
previous syntaxes.
The example provided is as follows:
Set the width of each bar to 40 percent of the total space available
for each bar.
y = [75 91 105 123.5 131 150 179 203 226 249 281.5];
bar(y,0.4)
So bottom line is: the width is specified as a % of the total space available for each bar. Yoru problem comes from the fact that you have far too many bars, so the space available for each bar is tiny. Setting the width to 50 or 5000% of the space available just means that each bar will overlap quite substantially on the neighbouring bars. Because you have so many, the middle plot looks "reasonable" as I suspect a lot of the bars are overlapped and a lot of them are at zero, so you just can't see them. If you go down to a sensible number of bars, as in your last example, then setting the width to 5000% looks ridiculous as you found out.
So to summarise: reduce the number of bars and specify the bar width between >0 and 1 (1 being no gap, all the bars touching each other).
A better way to plot things with random x locations is to use stem. By default, it draws a line from the zero line to the datum, with a circle representing each datum. But this can be modified. For example:
stem(randsample(0:0.0001:1,100),randn(100,1), 'Marker','none', 'LineWidth',4)
creates a plot similar to your second attempt, but with bars of a fixed width (4 points).

Custom number format for y-axis on Chart

I have created a chart with 2 axes that acts as a panel chart (see image)
As a panel chart I only want to show the portions of the relevant y-axes to the chart next to them. For example, for the right-most y-axis I used a custom number format to exclude anything less than 0:
_(* #,##0_);_("";_(* 0??_);_(#_)
But for the left most y-axis, I'm stuck. I want to show -400 to positive 400. I've tried 2 different options, but neither is producing the desired effect.
[<0](#,##0);[>500000000]"";#,##0_)
[<0](#,##0);[<500000000]#,##0_);""
Here is the result I'm looking for:
I learned something new today (and a bit weird) regarding formats and chart axes
After some experimenting, this is what I ended up using:
[White][>500]_(#,##0_);(#,##0);0;
The odd part: When you change the Display Units of the axis (for me, millions), then the formatting no longer recognizes the original amount (500,000,000).
Once I figured that out, I was able to work out the solution.

ssrs not see all the information in chart axis

why when this is little information this sees ok, i am not sure but i believe this work ok with max 8 or 10 axis-information in this case codigos de producto or product code.
this is not the first report which get this bug.
but when this is big information
i dont see the others products code, it show only somes. about 5 or 4 codes,
these are my horizontal option
the answer of #register user works fine
Is your question "how do I get the X-axis to show all product codes regardless of the number of codes?" If so, then explicitly define the Interval = 1 in the Horizontal Axis Properties -> Axis Options -> Interval section. This should force it to show each label every time. You may also want to edit the Horizontal Axis Properties -> Labels and Labels Fonts screens to force rotating the labels, changing the font size, etc., instead of relying on the auto and default options.

Sigmaplot: How to scale x-axis for correctly displaying boxplots

I want to display overlapping boxplots using Sigmaplot 12. When I choose the scale for the x-axis as linear then the boxes do indeed overlap but are much too thin. See figure below. Of course they should be much wider.
When I choose the scale of the x-axis to be "category", then the boxes have the right width, but are arranged along each single x-value.
I want the position as in figure 1 and the width as in figure 2. I tried to resize the box in figure 1 but when I choose 100% in "bar width" than it still looks like Figure 1.
many thanks!
okay, I found the answer myself. In Sigmaplot, there is often the need to prepare "style"-columns, for example if you want to color your barcharts, you need a column that holds the specific color names.
For my boxplot example I needed a column that has the values for "width". These had to be quite large (2000) in order to have an effect. Why ? I have no idea. First I thought it would be because of the latitude values and that the program interprets the point as "1.000"s, but when I changed to values without decimals, it didnĀ“t get better.
Well, here is the result in color.
Have fun !