This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Css Graph
#9
You can move the legend to the bottom of the graph but it won't work correctly when there are two legends or too many selected trends.
Code:
.flotr-legend-left {
  left: auto !important;
  right: 0 !important;
  top: auto !important;
  bottom: 0 !important;
}
.flotr-legend-left table {
  display: block;
}
.flotr-legend-left table tr {
  display: block;
  float: left;
}

Or you can make it semi-transparent:
Code:
.flotr-legend {
  opacity: 0.5;
}
.flotr-legend:hover {
  opacity: 1;
}

Styles can also target Trend logs that are shown via iframe:
Code:
.trends.view-frame .flotr-legend {
  opacity: 0.5;
}
.trends.view-frame .flotr-legend:hover {
  opacity: 1;
}

It's also possible to add custom CSS class to the body element via location hash:
Code:
var hash = window.location.hash;
if (hash.length > 1) {
  document.body.classList.add(hash.substr(1));
}
For example http://LM_IP/scada-vis/trends#mycustomcls will have "mycustomcls" class added.
Reply


Messages In This Thread
Css Graph - by Chris - 04.10.2022, 06:13
RE: Css Graph - by admin - 04.10.2022, 06:49
RE: Css Graph - by Chris - 04.10.2022, 18:24
RE: Css Graph - by admin - 05.10.2022, 06:14
RE: Css Graph - by Chris - 05.10.2022, 14:14
RE: Css Graph - by Daniel - 05.10.2022, 14:43
RE: Css Graph - by Chris - 05.10.2022, 18:15
RE: Css Graph - by victor.back - 31.07.2023, 08:55
RE: Css Graph - by fee_connect - 04.09.2023, 14:18
RE: Css Graph - by AlexLV - 06.10.2022, 06:33
RE: Css Graph - by admin - 06.10.2022, 08:36
RE: Css Graph - by AlexLV - 06.10.2022, 11:16
RE: Css Graph - by Chris - 07.10.2022, 05:52
RE: Css Graph - by admin - 07.10.2022, 06:08
RE: Css Graph - by Chris - 07.10.2022, 12:12
RE: Css Graph - by admin - 31.07.2023, 09:07
RE: Css Graph - by admin - 05.09.2023, 10:35
RE: Css Graph - by fee_connect - 05.09.2023, 13:04
RE: Css Graph - by jose_dli - 25.09.2023, 12:20
RE: Css Graph - by admin - 25.09.2023, 12:37
RE: Css Graph - by Amelie - 02.07.2024, 06:48
RE: Css Graph - by admin - 02.07.2024, 07:19

Forum Jump: