Allow to change history scale in custop pages
With the old histories it was possible to define “data-scale” changing its scale from default in a custom page. It would be nice to have this feature implemented also in the mjshistory.
Comments (6)
-
-
Are you talking about the horizontal or vertical scale? Can you give an example how you used that in the old system?
-
reporter I meant the horizontal scale, for example to show the last 30 minutes only:
'<a href="../HS/LowTemp/SampleTemp" target"_blank"><image id="LTTemp" x="21000" y="1000" '+size+' href="../HS/LowTemp/SampleTemp.gif?width=230&scale=0.5h"/></a>'
-
- changed status to resolved
Changing the horizontal scale is als possible in the new system. Just be so kind and read the documentation at
https://midas.triumf.ca/MidasWiki/index.php/Custom_Page#mhistory
where you can find
data-scale="10m"
as one of the options in the "mhistory" object.
-
reporter Sorry, but this works only for mhistory class but it did not work for mjshistory class. Am I missing something?
-
Indeed the functionality was missing in mjshistory. I added that.
- Log in to comment
Yes, in the old system, you could specify this in the URL. I am not sure if the new system implements this. For changing the time scale, I am used to edit the URL (select 7 day scale, add a zero to get the 70 day scale, etc). And I miss this in the new system. Maybe Stefan can bring it back? K.O.