diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 32391007..1db2d3db 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -66,6 +66,7 @@ CFDG CFDP CFPD cgi +chartjs checkbox chrono classdocs @@ -95,6 +96,7 @@ csum csv ctime CTORS +ctx curateable curated curating @@ -329,6 +331,7 @@ logselect longdesc lowercased lstrip +luxon lxml MAINPAGE makedirs @@ -360,6 +363,7 @@ mycompany myfile mymodule myproject +nagix namespace nargs navbar @@ -457,6 +461,7 @@ readlines README readonly readthedocs +realtime recommonmark recv recvd @@ -471,6 +476,7 @@ reqparse rerendered restructuredtext returncode +rgb rgba riverbankcomputing Roboto @@ -478,6 +484,7 @@ rpaetz rst rtd rtf +saba scm scrollable scrollbar @@ -574,6 +581,7 @@ transcoding treeview tsn tstring +ttl tts twbs txz diff --git a/src/fprime_gds/flask/static/addons/chart-display/chart-addon.js b/src/fprime_gds/flask/static/addons/chart-display/chart-addon.js new file mode 100644 index 00000000..370973e6 --- /dev/null +++ b/src/fprime_gds/flask/static/addons/chart-display/chart-addon.js @@ -0,0 +1,468 @@ +/** + * addons/chart-display.js: + * + * Visualize selected telemetry channels using time series charts + * + * @author saba-ja + */ + +import { _datastore } from '../../js/datastore.js'; +import '../../third-party/js/chart.js'; +import '../../third-party/js/chartjs-adapter-luxon.min.js'; +import '../../third-party/js/hammer.min.js'; +import '../../third-party/js/chartjs-plugin-zoom.min.js'; +import '../../third-party/js/chartjs-plugin-streaming.min.js'; + +/** + * Wrapper component to allow user add multiple charts to the same page + */ +Vue.component("chart-wrapper", { + data: function () { + return { + counter: 0, // Auto incrementing id of each chart box + chartInstances: [], // list of chart objects + }; + }, + template: ` +
+ Enable zoom by clicking on a chart
+ Zoom in and out by using mouse wheel
+ Drag horizontally by right click and hold
+ Change size by dragging bottom right of the chart box