Project

General

Profile

Actions

Evolution #1722

closed

indicator : ability to display labels on abscissa on charts

Added by Simon about 1 month ago. Updated about 1 month ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
12/10/2024
Due date:
% Done:

100%

Estimated time:
16.00 h
Resolution:

Description

to implement on client side and server side

Actions #1

Updated by Simon about 1 month ago

JS part

Convert original code :

Array ( [site-language] => fr [indicator-notitle] => 0 [indicator-name] => Labels en abscisse [indicator-force-min] => NaN [indicator-type] => multiple [indicator-unique-type] => normal [indicator-multiple-type] => mean [indicator-multiple-mode] => labels_on_abscissa [indicator-default-vis] => column [indicator-stack-type] => normal [indicator-wanted-vis] => column [indicator-wanted-year] => [indicator-serie-name] => valeur de l'indicateur [indicator-threshold-name] => valeur seuil [indicator-mean-name] => moyenne [indicator-unit] => nb [indicator-negative-notice] => [valeurs négatives non affichées] [dates] => Array ( [0] => 06-12-2024 [1] => 31-12-2022 [2] => 31-12-2020 ) [data] => [{"name":"janvier","data":[25,18,41]},{"name":"f\u00e9vrier","data":[14,25,85]},{"name":"mars","data":[35,42,21]},{"name":"avril","data":[47,35,11]},{"name":"mai","data":[12,63,66]},{"name":"juin","data":[8,14,25]}] [thresholds] => Array ( [0] => [1] => [2] => ) [data-mean] => Array ( [0] => 41.5 [1] => 32.833333333333 [2] => 23.5 ) )

To :

Array ( [site-language] => fr [indicator-notitle] => 0 [indicator-name] => Labels en abscisse [indicator-force-min] => NaN [indicator-type] => multiple [indicator-unique-type] => normal [indicator-multiple-type] => mean [indicator-multiple-mode] => labels_on_abscissa [indicator-default-vis] => column [indicator-stack-type] => normal [indicator-wanted-vis] => column [indicator-wanted-year] => [indicator-serie-name] => valeur de l'indicateur [indicator-threshold-name] => valeur seuil [indicator-mean-name] => moyenne [indicator-unit] => nb [indicator-negative-notice] => [valeurs négatives non affichées] [dates] => Array ( [0] => juin [1] => mai [2] => avril [3] => mars [4] => février [5] => janvier ) [data] => [{"name":2020,"data":[25,14,35,47,12,8]},{"name":2022,"data":[18,25,42,35,63,14]},{"name":2024,"data":[41,85,21,11,66,25]}] [thresholds] => Array ( [0] => [1] => [2] => ) [data-mean] => Array ( [0] => 41.5 [1] => 32.833333333333 [2] => 23.5 ) )

Server part

Convert original dataset :

Array ( [janvier] => Array ( [0] => 25 [1] => 18 [2] => 41 ) [février] => Array ( [0] => 14 [1] => 25 [2] => 85 ) [mars] => Array ( [0] => 35 [1] => 42 [2] => 21 ) [avril] => Array ( [0] => 47 [1] => 35 [2] => 11 ) [mai] => Array ( [0] => 12 [1] => 63 [2] => 66 ) [juin] => Array ( [0] => 8 [1] => 14 [2] => 25 ) ) 

To :

Array ( [31-12-20] => Array ( [0] => 25 [1] => 14 [2] => 35 [3] => 47 [4] => 12 [5] => 8 ) [31-12-22] => Array ( [0] => 18 [1] => 25 [2] => 42 [3] => 35 [4] => 63 [5] => 14 ) [06-12-24] => Array ( [0] => 41 [1] => 85 [2] => 21 [3] => 11 [4] => 66 [5] => 25 ) )

And compute dynamic mean based on labels

Actions #2

Updated by Simon about 1 month ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r4510.

Actions

Also available in: Atom PDF