Hi,
I’ve recently added a javascript library to https://github.com/quintanar401/kdb-wc that you might find useful.
It essentially implements some basic javascript objects that allow you to get data from a kdb+ db via http or ws into a browser, put it into a table or draw a chart.
Queries can be parametrized by other html elements like selects, inputs and etc. It is very simple - you need just to add a few tags (assuming kdb db allows access):
<kdb-srv fix-json="true"></kdb-srv> <kdb-query k-update-elements="tbl ch">([] time:.z.T+til[50]*00:00:10; price: 50?40*50?1.0)</kdb-query> <kdb-chart k-id="ch" k-style='width:800px;height:400px;'></kdb-chart> <kdb-table k-id="tbl"></kdb-table>
There are also kdb-editor (based on ACE editor) that can be used show or edit Q code and KDBLex that can be used to convert Q code to html.
I hope you find it useful!
WBR, Andrey Kozyrev.
Nice work.<o:p></o:p>
<o:p> </o:p>
Kim<o:p></o:p>
<o:p> </o:p>
Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Andrew Kozyrev
Gesendet: Mittwoch, 8. Juni 2016 08:36
An: Kdb+ Personal Developers
Betreff: [personal kdb+] FYI: kdb+ web components<o:p></o:p>
<o:p> </o:p>
Hi,
I’ve recently added a javascript library to https://github.com/quintanar401/kdb-wc that you might find useful.
It essentially implements some basic javascript objects that allow you to get data from a kdb+ db via http or ws into a browser, put it into a table or draw a chart.
Queries can be parametrized by other html elements like selects, inputs and etc. It is very simple - you need just to add a few tags (assuming kdb db allows access):<o:p></o:p>
<kdb-srv fix-json=“true”></kdb-srv>
<kdb-query k-update-elements=“tbl ch”>( time:.z.T+til[50]*00:00:10; price: 50?40*50?1.0)</kdb-query>
<kdb-chart k-id=“ch” k-style=‘width:800px;height:400px;’></kdb-chart>
<kdb-table k-id=“tbl”></kdb-table><o:p></o:p>
There are also kdb-editor (based on ACE editor) that can be used show or edit Q code and KDBLex that can be used to convert Q code to html.
I hope you find it useful!
WBR, Andrey Kozyrev.<o:p></o:p>
–
Submitted via Google Groups