-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial zoom level option in Visualizations #596
Conversation
|
A useful addition Ruben. It's really annoying to load up a dashboard of visualizations, to then have to manually select the preferred timeframes EVERY TIME!!! Paul |
|
It is not needed. I can update the PR pushing the new changes. |
|
A quick info: for multigraphs the default zoom level becomes the one that was active when the multigraph was saved. |
*Only visualizations with selectable zooms are candidates to implement the "Initial Zoom" |
|
In progress [###############] 15/15 |
|
You can create a generic drop down for the user to select the zoom type from a predefined list with the optionsdata parameter in .. |
|
.. vis_render.php. See the multigraph part for an example. |
|
Thanks @chaveiro! |
|
@chaveiro Where is loaded vis_widget to use multigraphsDropBoxOptions? |
|
I tried to add a dropdown to this yesterday and hit the same issue.... |
|
The Initial Zoom option is implemented in all the visualizations with selectable zooming. Other visualizations can implement a similar concept but it is not the same concept. It could be "default zoom" or "time windows size" for example. It is the case of HistGraph, Treshold, OrderTreshold, OrderBars, Stacked, StackedSolar and TimeCompare. They could be implemented in other PR. PR ready to merge!! ;-) |
|
Ruben, it would have been a nice refinement to add dropdowns to select the zoom type. Paul |
|
OK! |
|
Hi, sorry late reply. So you can add the dropdown content by adding this to the vis_render.php file at each widget config: "optionsdata": [[1:"Day"],[7:"Week"],[30:"Month"],[365:"Year"]], Then act on the numeric value that is passed to the widget accordingly. |
|
Nothing! If we merge the PR and we fix it later? I am not going to spend more time on it. Sorry! Now it works and it is better than before. I cannot achieve the refinement to add dropdowns. |
|
Question, with this PR will it be able to define initial zoom for a graphical widget on a dashboard? |
|
Yes @chaveiro , I tested it with all the implementations. And they also pass the Travis and Codacy checkings. |
|
Tested here too. Works as expected, and initial setting persists within the On 10 Nov 2016 13:13, "Rubén de Celis Hernández" notifications@github.com
|
|
Ok, nice. "optionstype":["dropbox"], |
|
@chaveiro I already tried it, without success... |
|
Would it help of the changes made so far were merged, then maybe look at On 10 Nov 2016 14:03, "Rubén de Celis Hernández" notifications@github.com
|
|
Thanks for the merge!!! |
|
I've made my refactoring on top of your changes, please take a look and start from that. |
|
I am not agree with "Reverted: bargraph (already had Interval to specify default zoom)" |
|
...also agree with @RDCH106 about bargraph. Paul |
|
All right, no problem about bargraph, want to implement again (now with the new formatting) ? |
|
Yes, I will do it again with the new formatting. |
|
-> Added default zoom to timecompare #600 |

Default zoom level of the radata visualization (day , week, month, year) in the configuration panel.
By default the visualization uses week zoom. The zoom level selection is robust to unexpected values or undefined value.
It could be extended to other visualizations. I can prepare another PR to do that.