Search code examples
eclipse-scout

Javascript chart example


I saw charts in BSI CRM, and they look awesome. I tried to find online tutorial about making own widgets, everyone reported to look at heatmap example code, but it is confusing. Where to start?

But I would like to see a tutorial to show simple chart or any other javascript widget in scout. I need steps where to start..

Is there any tutorial, can someone write it. Only in few lines?

Thanks


Solution

  • To use charts in a Scout application you have to choose a chart library and include it into your project. I’ll give you an example with ChartJS. For you it is probably easiest to look at the commit (link below) to do the same in your project. I’ll write a short cheat sheet on ‘How to integrate ChartJS in Scout applications’ within the next days and link it as soon as it is available.

    Depending on what you are using, ScoutJS (JavaScript only) or Scout Classic (Java based application model), the integration of external libraries differs.

    ScoutJS: Commit: 'Added ChartJS example to JSWidgets app.'

    Scout Classic: Commit: 'ChartJS example for classic widget app.'