UNPKG

@fto-consult/expo-ui

Version:

Bibliothèque de composants UI Expo,react-native

14 lines (13 loc) 605 B
// Copyright 2022 @fto-consult/Boris Fouomene. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import {defaultNumber} from "$cutils"; import appConfig from "$capp/config"; /*** retourne le nombre maximal de courbes pouvant s'afficher sur un même graphe * exempt du graphe de type pie/donut * par défaut, on peut afficher au maximum 5 courbes sur le même graphe */ export const getMaxSupportedSeriesSize = ()=>{ const m = defaultNumber(appConfig.get("maxSupportedChartSeries")); return m > 3 ? m : 5; }