Skip to content

ako/MxChartUtil

Repository files navigation

Mx Chart Util

Mendix connector to create chartjs datasets from OQL.

Examples

Chartjs widget for Mendix requires the following data structure:

Chartjs datastructure

You need to configure a microflow datasource in the widget that will create and return this data structure.

Using the Mx Chart Util module you can use a single action that will return the result of an OQL query in the required data structure.

microflow

The action requires the following parameters:

  • OQL statement
  • Root object for the data structure

Action config

Here's an example OQL. You need to query the following colunns:

  • chartname
  • xlabel
  • xvalue
  • yvalue
  • color
  • label
  • sortingvalue

OQL example

Dynamic charter

The project contains an example how you can use the OQL action to build dynamic charts.

Some screenshots:

Specify entity and attributes for chart

Chart popup

Development

  • runivy.cmd - download all dependencies
  • runivy-export.cmd - download module export required dependencies

Release history

  • 0.1 -

About

Mendix module to create ChartJS compatible data structures using OQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages