Risorse

Esempi

Integrazioni complete ed eseguibili.

Host HTML semplice

Lo script tag del Quickstart è un host completo senza framework. Da lì, semplici pulsanti comandano l’engine:

HTML
<button id="add-histogram" type="button">Add histogram</button>
<button id="export-png" type="button">Export PNG</button>
<script>
  // After the Quickstart code: `engine`, `view` and a 'rpm' column exist.
  document.getElementById('add-histogram').onclick = () => {
    const id = engine.charts.add('histogram', { title: 'RPM', settings: { histColumn: 'rpm', histBins: 40 } })
    const el = document.body.appendChild(Object.assign(document.createElement('div'), { style: 'height: 300px' }))
    engine.charts.mount(id, el)
  }
  document.getElementById('export-png').onclick = async () => {
    const blob = await view.exportPng()
    const a = Object.assign(document.createElement('a'), { href: URL.createObjectURL(blob), download: 'rpm.png' })
    a.click()
    URL.revokeObjectURL(a.href)
  }
</script>

Questo sito web

La demo live nella home page è l’SDK in esecuzione in questo sito.

Publisher

  • Il pacchetto Python per pubblicare: pip install kymoscope.
  • Il collector, per i dati già presenti in un altro sistema: pip install kymoscope-collector.

Passi successivi

Parti dal Guida rapida o vai direttamente al riferimento dell’engine.