flot: can not use line-chart overview on narrow screen - flot

In the 'overview' chart I display data of 3 months X 30 days X 24 hours X 6 samples every hour.
In the 'main' chart I display, by default, data of the last day, or data of selected range in the 'overview' or data of selected date.
On regular desktop screen it works well.
I now tried to adapt this project into responsive design, and show the charts according to the screen size.
my problem: On narrow screen, when the range in the 'overview' is too small (measured in pixels?), I do not get the overview plotselected event.
If I try to dispaly the default last day - I dont get the plotselected event.
If I try to select one day on my date picker - I dont get the plotselected event.
If I try to select data of 3-last-days, it does work well.
If I change to wide screen, all works well.
How can I force 'overview' selection?
In the image below, one can see selection of last-3-days. this works. but selection of last-1-day does not work:

The Flot selection plugin has a minSize option which is by default set to 5 pixels. Since one day of data in your overview is about 3 pixels wide the plotselected event does not fire. Set the minSize to 1 and it should work with a chart of size down to 100 pixels.
From the comments in the jquery.flot.selection.js file:
"minSize" is the minimum size a selection can be in pixels. This value can
be customized to determine the smallest size a selection can be and still
have the selection rectangle be displayed. When customizing this value, the
fact that it refers to pixels, not axis units must be taken into account.
Thus, for example, if there is a bar graph in time mode with BarWidth set to 1
minute, setting "minSize" to 1 will not make the minimum selection size 1
minute, but rather 1 pixel. Note also that setting "minSize" to 0 will prevent
"plotunselected" events from being fired when the user clicks the mouse without
dragging.

Related

How to recreate a bar chart of event times in Excel

Trying to recreate this first graph in excel using the data below it.
Solved this by making the times regular integers, then calculating the start to end difference for each date, widening the data to split the differences among three categories. I then highlighted only the dates and start times, pressed control, and highlighted the 3 columns with the differences.
I selected stacked bar chart, which looked like this by default.
Lastly, I selected the (blue) start time bars and chose no fill as the color. After deleting this series from the legend, the result adequately matched the requirements.

Excel Pivot Chart 'fixed' horizontal axis

I have got a horizontal axis that holds numbers (roughly 7,5 through 18 at 0,5 intervals) based on the set filters.
I would like it to always show the 7,5 though 18 on the horizontal axis, even if the filtered only is applicable 10 to 12,5 for example.
Thing is, the axis options do not show bounds to set as I have found to appear in other solutions:
I've double checked to make sure my axis data is formated as numbers:
In case of possible relevancy, the formula used to calculate the day time indicator is
=mround((mod(GDQ[Timestamp];1)*24);0,5)
Is there a way to have the horizontal axis always show start through end plotting the filtered data always on the same timeframe?
I had exactly the same issue, and solved it on the pivot table side.
Go to the field setting (in your case for the day/time indicator, your x-axis), then to the tab "Layout & Print", and activate "Show items with no data".
Now every category will always show up in the pivot table, even with no data after you do some filtering with your slicer, and the layout of the graph will remain constant (axis limits).

How to set the max value at 5 in a radar graph in Excel whereas all the values are smaller than 4

I have an excel radar graph.
I have many criteria. Every criteria has to have a value between 0 and 5. But if all the values are strictly smaller than 4, then the graph considers 4 as the max value, but I still want 5 to be the max value.
How to do that ?
Thanks,
You didn't say what version of excel you are using but you can change axis min and max in a radar chart just like any other chart.
select the chart
on format tab select Radar Axis from the drop down (under current selection tab)
Click format selection and then change your min and max.
You can click on the chart and go to the ‘+’ beside the chart which shows the chart elements. The first element is ‘Axes’.
If you hover the arrow more right on the ‘Axes’ row, you will see a small black arrow that you click -> then click ‘More Options’ and you can change the Minimum and Maximum bounds of it .
Coincidently enough had the same issue with the same max value.
First right click for "Select Data..." On the left side for Legend Entries. Click on "Add" and you will come to an "Edit Series" popup. Give it a "Series name" and for the "Series values" input "={5}" instead of the default "={1}". And that's it. You should have two Legend Entries; one for your main data source i.e. Series1 and the new one just created.

Adding multiple data level fields in a bar graph

I have plotted bar graph but I want the data levels on it not the value of the bar itself but a different set of values (probably from a set of values from a different column). Can I do this in a single step where I can choose which set of values I want to show in the bar graph?
If my understanding is correct, right-click on the Y-axis, press "Format axis..." and in the axis options you are able to make then necessary amendments. For example, set your minimum/maximum values and/or step units (say, your original values range from 0 to 800. By pressing fixed option button in minimum, you could set it from 0 to 100; and maximum from 800 to 1000).

Excel: Stretching a graph on x axis

In my graph, the x axis are text values. When I make the graph, I cannot stretch it to the whole width. Instead, it takes only less than half of the width.
I usually do this by clicking on "Format Axis", but it doesn't offer that in this case.
Here is the screenshot:
I'm using Excel for Mac.
When you made the chart, did you select a bunch of empty rows below the range that actually contains data? Looks like twice as much empty data as data with values.
If you select the plot area or chart area, you can see the source data of the chart highlighted in the sheet. You can resize the highlighted range with the mouse to modify the amount of data in the chart.
Did they made different types for windows and mac? I'm using windows and scaling is never a problem here.
I can't give you any answer but I can give you a suggestion. Can you check the width of the numbers below the 'Number of public SLA templates' label? Its occupying all the width of your window.

Resources