cancel
Showing results for 
Search instead for 
Did you mean: 

FYI: kdb+ web components

quintanar401
New Contributor
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.
1 REPLY 1

kuentang
New Contributor

Nice work.

 

Kim

 

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

 

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.

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.