Application Note: Advanced Techniques in Visualization
Application Note: Advanced Techniques in Visualization
Application note
Advanced techniques in visualization
The addition of either symbol to a “Danger” or “Warning” safety label indicates that an electrical hazard
exists which will result in personal injury if the instructions are not followed.
This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety
messages that follow this symbol to avoid possible injury or death.
DANGER
WARNING
CAUTION
NOTICE
NOTICE is used to address practices not related to physical injury. The safety
alert symbol shall not be used with this signal word.
A qualified person is one who has skills and knowledge related to the construction, installation, and
operation of electrical equipment and has received safety training to recognize and avoid the hazards
involved.
Safety Precautions
WARNING
4 Resolutions .............................................................................................................................. 16
5 Conclusion ............................................................................................................................... 20
6 Appendix ................................................................................................................................. 20
CSS (Cascading Style Sheets) which allows you to modify Wiser for KNX visualization to give the
integrator easy control of customization of GUI (Graphical user interface)
SVG (Scalable Vector Graphics) minimizing memory requirements and ensure forward compatibility as
well as independency of icon quality in different resolutions.
The application note also contains information about available graphic resolutions to ensure Wiser for KNX
The customer value propositions correspond to real use cases to modify Wiser for KNX visualization via CSS,
import SVG icons and select suitable resolution for visualization. In this context here are some possible use
cases which can be implemented with this application note:
Competencies
There are several necessary competencies to follow procedures mentioned in this application note. It is
mandatory to have knowledge of basic Wiser for KNX configuration described in the User guide and
knowledge of web and graphic technologies CSS, SVG. Further information about CSS is available on W3C
website (http://www.w3.org)
System prerequisites
independent of HTML (HyperText Markup Language). This separation of HTML from CSS makes it easier to
maintain Wiser for KNX visualization and share style sheets across pages.
The Wiser for KNX has an integrated CSS editor which is designed to work-out the final design of visualization.
selector{property:value; property:value;}
e.g. h1{color:green; font-size:18px;}
Selector is an HTML element, in this case header level 1 (in this example h1)
Declaration (in this example color:green; font-size:18px;) modifies origin look of HTML element via
changes of values in brackets. Every graphic element which is located on visualization web page is described
by CSS in terms of placement and look.
Edit CSS 3
The Wiser for KNX supports only one style sheet linked to the visualization. This style sheet modifies behavior
of whole visualization.
Beside using of the custom CSS, the visualization can be upon of that affected by inline CSS, which is
The inline CSS can cause problem because it has higher priority than custom CSS. This priority can be forced
by !important property.
For example: If the integrator creates a custom CSS for his complete project and after that needs to modify
newly implemented icons, he needs to add command !important to each of them so that the new icon shares
This step can be performed with specific web design tools like Firebug or Web Developer which can installed
like browser extensions. These web design tools are available for the Mozilla Firefox and Google Chrome
browsers.
In this use case we focus on the question “How to change font and color of heading?”.
Select element 6
HTML element for heading which is described by inline CSS according tools for visualization analysis.
<div class="item item-label" style="top: 19px; left: 25px; z-index: 30; font-size: 30px;
color: rgb(98, 100, 105); font-weight: bold; font-family: Arial;">Light</div>
Origin grey colored font Arial changed to font Calibri and green color. This rule is applied over whole
visualization and saves the time of bespoke modification.
In case of modification of some part of the SVG icon (color, fill etc.) it is highly recommended to modify it in
professional graphic software before upload to Wiser for KNX.
Note: The welcome page does not have external CSS file and cannot be modified via custom CSS.
User can add additional classes to any element in the visualization. This feature is implemented from Wiser for
KNX firmware version 1.3.0 and allows you to differentiate elements so you can write a unique CSS rule for
specified elements only.
Adding new classes are done by filling Additional classes input in Plan editor when element is selected.
Header modified by Additional classes is now accessible via 2 new classes .heading_red and .font_bold. How
to edit CSS via modification of selector is described in chapter 2.2.2. Following code change color of heading
to red and font to bold.
There are some standard elements used on visualization webpage which can be modified via custom CSS.
Note: Table 2 does not contain all properties, because they are not applicable to Wiser for KNX visualization.
Complete properties are available on W3C website (http://www.w3.org).
of pixels and has huge potential for high resolution plans because the file size is independent of the scale of
the icon and thus significantly improves quality of GUI.
1) Import icons
Import SVG icons can be done by using Add icons button and choosing SVG icons located on hard drive.
Note: If there is no need to use the PNG icons, they can be deleted. Select icons which you want delete and
native resolution and aspect ratio of used display devices is the key to reach best results in visualization.
Each class of resolution was tested in ”center plans, enabled auto-sizing ” mode.
You can see the behavior different resolutions in next chapters which are focused on the testing of different
resolutions.
640x480 Plan is too small for this display, use higher resolution
1024x768 Plan is covering approximately 75% of display height, use higher resolution
iPad resolution was correctly adapted, but due to different ratio there are white borders
2048x1536
from sides
Plan is too small for this display, it is zoomed out, use higher resolution to improve the
640x480
look
FullHD resolution was correctly adapted to resolution of iPad, but due to different ratio
1920x1080
there are white borders from above and bellow
Table 5 iPad
Configurator ›› Configuration
Description:
If visualization is larger than resolution of display, plan is cut from bottom and right side. If visualization is
smaller than resolution of display, plan is aligned to top left.
Description:
Description:
If visualization is larger than resolution of display, plan is auto sized. If visualization is smaller than resolution of
display, plan is centered.
If visualization is larger than resolution of display, plan is cut from bottom. If visualization is smaller than
resolution of display, plan is centered.
5 Conclusion
Using Custom CSS is helpful for mass changes in visualization or to create styles based on customer
conventions.
SVG graphics are very useful for visualization in high resolution. Using SVG graphics does not have a negative
Regarding PC/Tablet view parameter it is advised to use the same resolution as on display of the device or
higher. If resolution of display device will be higher and PC/tablet view parameter will be set as Center plans,
auto size, plan will be optimalized for comfort view.
6 Appendix
6.1 Glossary
The following table describes the acronyms and defines the specific terms used in this document.
Abbreviation Description
CSS Cascading Style Sheets
HTML HyperText Markup Language
SVG Scalable Vector Graphics
JPG Lossy image format
GIF Lossless bitmap image format
PNG Lossless bitmap image format
VGA Video Graphics Array
XGA Extended Graphics Array
W3C The World Wide Web Consortium
Head Office
35, rue Joseph Monier
92506 Rueil-Malmaison Cedex
FRANCE
www.schneider-electric.com