DCC Viewer JavaScript "dccviewer-js"
A lightweight JavaScript/HTML application for displaying Digital Calibration Certificates (DCC) from XML files. The application parses a DCC XML file, renders administrative data and measurement results interactively (including charts and tables), and supports multiple languages based on the certificate’s data.
Licencs and other Information
This Library is a proof of concept of the advantages of interactive visualisation of the DCC-XML 3.3.0 Calibration certificates. There are errors in this code, and many parts missing so far, and it's not guaranteed that all elements are rendered correct or even rendered at all. This code is licensed under MIT since we hope to build a more generic libary in the future and sharing it and it's development efforts with the world.
Source Reposity and issue tracker
https://gitlab1.ptb.de/Seeger/dccviewer-js
Features
-
Multi-Language Support:
Automatically extracts available languages from the XML's administrative data and builds a dynamic language dropdown. -
Interactive Measurement Rendering:
Measurement results are rendered in a tabbed layout, with interactive charts (using Plotly) and tables that update with scaling options and tolerance markings. -
Expandable Sections:
Used methods and influence conditions are rendered in collapsible sections using JSONEditor.
Installation
-
Clone the Repository:
git clone https://gitlab1.ptb.de/Seeger/dccviewer-js cd dccviewer-js
-
Install Dependencies:
npm install dccviewer-js