@fto-consult/expo-ui 2.24.1 → 2.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@ export const donutChart = {
48
48
  type: 'donut',
49
49
  key : "donut",
50
50
  isDonut : true,
51
- isRendable : ({displayOnlySectionListHeaders,isSectionList})=> false && isSectionList && displayOnlySectionListHeaders,
51
+ isRendable : ({displayOnlySectionListHeaders,isSectionList})=> isSectionList && displayOnlySectionListHeaders,
52
52
  tooltip : "Pour pouvoir visulaiser ce type de graphe, vous devez : grouper les données du tableau selon le criètre de votre choix, puis afficher uniquement les totaux des données groupées"
53
53
  }
54
54
  const stackSettings = {
@@ -1631,7 +1631,7 @@ export default class CommonDatagridComponent extends AppComponent {
1631
1631
  const aggregatorFunction = this.getActiveAggregatorFunction().eval;
1632
1632
  const emptyValue = this.getEmptyDataValue();
1633
1633
  const indexes = {};
1634
- let series = [],xaxis = {},customConfig = {};
1634
+ let series = [],xaxis = {},customConfig = {},seriesNamesToColumns={};
1635
1635
  let count = 0;
1636
1636
  if(!this.isSectionList()){
1637
1637
  this.state.data.map((data,index)=>{
@@ -1723,13 +1723,16 @@ export default class CommonDatagridComponent extends AppComponent {
1723
1723
  xLabels.style = defaultObj(xLabels.style)
1724
1724
  xLabels.style.colors = (Array.isArray(xLabels.style.colors) && xLabels.style.colors.length || theme.Colors.isValid(xLabels.style.colors)) ? xLabels.style.colors : labelColor;
1725
1725
  chartOptions.yaxis = extendObj(true,{},{type: 'category'},chartProps.yaxis);
1726
- const yLabels = chartOptions.yaxis.labels = defaultObj(chartOptions.yaxis.labels);
1727
- yLabels.style = defaultObj(yLabels.style)
1728
- yLabels.style.colors = (Array.isArray(yLabels.style.colors) && yLabels.style.colors.length || theme.Colors.isValid(yLabels.style.colors)) ? yLabels.style.colors : labelColor;
1729
-
1730
1726
  } else {
1731
1727
  delete chartOptions.xaxis;
1732
- delete chartOptions.yaxis;
1728
+ //delete chartOptions.yaxis;
1729
+ }
1730
+ const yLabels = chartOptions.yaxis.labels = defaultObj(chartOptions.yaxis.labels);
1731
+ yLabels.style = defaultObj(yLabels.style)
1732
+ yLabels.style.colors = (Array.isArray(yLabels.style.colors) && yLabels.style.colors.length || theme.Colors.isValid(yLabels.style.colors)) ? yLabels.style.colors : labelColor;
1733
+ yLabels.formatter = (value)=>{
1734
+ if(typeof value =="number") return value.formatNumber();
1735
+ return value;
1733
1736
  }
1734
1737
  chartOptions.chart.id = this.chartIdPrefix+defaultStr(chartType.key,"no-key")
1735
1738
  return <Chart